mirror of https://github.com/GNOME/gimp.git
If no scroll should be applied we can return early.
2008-08-26 Martin Nordholts <martinn@svn.gnome.org> * app/display/gimpdisplayshell-scroll.c (gimp_display_shell_scroll): If no scroll should be applied we can return early. svn path=/trunk/; revision=26774
This commit is contained in:
parent
fb56170667
commit
ad693bbf9e
|
@ -1,3 +1,9 @@
|
|||
2008-08-26 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/display/gimpdisplayshell-scroll.c
|
||||
(gimp_display_shell_scroll): If no scroll should be applied we can
|
||||
return early.
|
||||
|
||||
2008-08-26 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/display/gimpdisplayshell-autoscroll.c
|
||||
|
|
|
@ -94,6 +94,9 @@ gimp_display_shell_scroll (GimpDisplayShell *shell,
|
|||
|
||||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||
|
||||
if (x_offset == 0 && y_offset == 0)
|
||||
return;
|
||||
|
||||
old_x = shell->offset_x;
|
||||
old_y = shell->offset_y;
|
||||
|
||||
|
|
Loading…
Reference in New Issue