If we are in dot-by-dot, we only need to update the rulers, and only if

2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_resolution_changed_handler): If we are in
	dot-by-dot, we only need to update the rulers, and only if the
	unit is not pixels.

svn path=/trunk/; revision=26556
This commit is contained in:
Martin Nordholts
2008-08-14 15:34:09 +00:00
committed by Martin Nordholts
parent ecd95dcf76
commit f91ac50fd7
2 changed files with 12 additions and 1 deletions

View File

@ -422,7 +422,11 @@ gimp_display_shell_resolution_changed_handler (GimpImage *image,
if (shell->dot_for_dot)
{
gimp_display_shell_update_scrollbars_and_rulers (shell);
if (shell->unit != GIMP_UNIT_PIXEL)
{
gimp_display_shell_scale_update_rulers (shell);
}
gimp_display_shell_scaled (shell);
}
else