[Xfce4-commits] <ristretto:ristretto-0.0> Set ratio-trigger to 1, '0' will never do anything
Stephan Arts
noreply at xfce.org
Sun Oct 23 19:13:02 CEST 2011
Updating branch refs/heads/ristretto-0.0
to 980a4b09195f393b76bfa1985726f7eab2364651 (commit)
from 415eea3428c67d8bc2ae097c451a3d2ea001d307 (commit)
commit 980a4b09195f393b76bfa1985726f7eab2364651
Author: Stephan Arts <stephan at xfce.org>
Date: Tue Apr 28 07:41:48 2009 +0200
Set ratio-trigger to 1, '0' will never do anything
src/image.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/image.c b/src/image.c
index 098aa6a..4d53f04 100644
--- a/src/image.c
+++ b/src/image.c
@@ -637,7 +637,7 @@ cb_rstto_image_size_prepared (GdkPixbufLoader *loader, gint width, gint height,
if (image->priv->max_size > 0)
{
gdouble ratio = (gdouble)(image->priv->max_size*1000000)/(gdouble)(width * height);
- if (ratio < 0)
+ if (ratio < 1)
gdk_pixbuf_loader_set_size (loader, width*ratio, height*ratio);
}
}
More information about the Xfce4-commits
mailing list