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:
Martin Nordholts 2008-08-26 17:53:54 +00:00 committed by Martin Nordholts
parent fb56170667
commit ad693bbf9e
2 changed files with 9 additions and 0 deletions

View File

@ -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> 2008-08-26 Martin Nordholts <martinn@svn.gnome.org>
* app/display/gimpdisplayshell-autoscroll.c * app/display/gimpdisplayshell-autoscroll.c

View File

@ -94,6 +94,9 @@ gimp_display_shell_scroll (GimpDisplayShell *shell,
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell)); g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
if (x_offset == 0 && y_offset == 0)
return;
old_x = shell->offset_x; old_x = shell->offset_x;
old_y = shell->offset_y; old_y = shell->offset_y;