gimp r26556 - in trunk: . app/display



Author: martinn
Date: Thu Aug 14 15:34:09 2008
New Revision: 26556
URL: http://svn.gnome.org/viewvc/gimp?rev=26556&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/app/display/gimpdisplayshell-handlers.c

Modified: trunk/app/display/gimpdisplayshell-handlers.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-handlers.c	(original)
+++ trunk/app/display/gimpdisplayshell-handlers.c	Thu Aug 14 15:34:09 2008
@@ -422,7 +422,11 @@
 
   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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]