gimp r26561 - in trunk: . app/display



Author: martinn
Date: Thu Aug 14 17:49:36 2008
New Revision: 26561
URL: http://svn.gnome.org/viewvc/gimp?rev=26561&view=rev

Log:
2008-08-14  Martin Nordholts  <martinn svn gnome org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_get_zoom_focus): When the image is
	within the viewport, also use the center of the image as the zoom
	focus point when zooming it. It feels way too weird not to do it
	this way.


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

Modified: trunk/app/display/gimpdisplayshell-scale.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-scale.c	(original)
+++ trunk/app/display/gimpdisplayshell-scale.c	Thu Aug 14 17:49:36 2008
@@ -902,10 +902,8 @@
                                          gint             *y)
 {
   GdkEvent *event;
-  gdouble   current_scale = gimp_zoom_model_get_factor (shell->zoom);
 
-  if (new_scale < current_scale &&
-      gimp_display_shell_scale_image_is_within_viewport (shell))
+  if (gimp_display_shell_scale_image_is_within_viewport (shell))
     {
       /* If the image is within the viewport and we are zooming out, put
        * the zoom focus in the center of the image



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