The scrollbars should be setup using the new offset, not the old

2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): The scrollbars should be setup
	using the new offset, not the old counterpart.

svn path=/trunk/; revision=26154
This commit is contained in:
Martin Nordholts
2008-07-12 10:27:20 +00:00
committed by Martin Nordholts
parent 2fa30b3487
commit 0024ff8048
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2008-07-12 Martin Nordholts <martinn@svn.gnome.org>
* app/display/gimpdisplayshell-scale.c
(gimp_display_shell_scale_setup): The scrollbars should be setup
using the new offset, not the old counterpart.
2008-07-12 Sven Neumann <sven@gimp.org>
* app/tools/gimprectangletool.c: formatting.

View File

@ -92,8 +92,6 @@ gimp_display_shell_scale_setup (GimpDisplayShell *shell)
gfloat sw, sh;
gint image_width;
gint image_height;
gint offset_x;
gint offset_y;
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
@ -119,15 +117,13 @@ gimp_display_shell_scale_setup (GimpDisplayShell *shell)
sh = image_height;
}
gimp_display_shell_get_render_start_offset (shell, &offset_x, &offset_y);
shell->hsbdata->value = offset_x;
shell->hsbdata->value = shell->offset_x;
shell->hsbdata->upper = sw;
shell->hsbdata->page_size = MIN (sw, shell->disp_width);
shell->hsbdata->page_increment = shell->disp_width / 2;
shell->hsbdata->step_increment = shell->scale_x;
shell->vsbdata->value = offset_y;
shell->vsbdata->value = shell->offset_y;
shell->vsbdata->upper = sh;
shell->vsbdata->page_size = MIN (sh, shell->disp_height);
shell->vsbdata->page_increment = shell->disp_height / 2;