From aaa6336664e001a17dfe12228ba37954651b7bfd Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sat, 16 Aug 2008 05:45:41 +0000 Subject: [PATCH] Make proper tests (>= not >)... 2008-08-16 Martin Nordholts * app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale_image_is_within_viewport): Make proper tests (>= not >)... svn path=/trunk/; revision=26584 --- ChangeLog | 6 ++++++ app/display/gimpdisplayshell-scale.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2acaa227dc..f2b2ccce35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-16 Martin Nordholts + + * app/display/gimpdisplayshell-scale.c + (gimp_display_shell_scale_image_is_within_viewport): Make proper + tests (>= not >)... + 2008-08-16 Daniel Eddeland * app/text/gimptext.c: corrected gimp_text_set_property for diff --git a/app/display/gimpdisplayshell-scale.c b/app/display/gimpdisplayshell-scale.c index de969ae6f8..fb5daf6269 100644 --- a/app/display/gimpdisplayshell-scale.c +++ b/app/display/gimpdisplayshell-scale.c @@ -522,8 +522,8 @@ gimp_display_shell_scale_image_is_within_viewport (GimpDisplayShell *shell) sh <= shell->disp_height && shell->offset_x <= 0 && shell->offset_y <= 0 && - shell->offset_x > sw - shell->disp_width && - shell->offset_y > sh - shell->disp_height; + shell->offset_x >= sw - shell->disp_width && + shell->offset_y >= sh - shell->disp_height; } /**