gimp r27951 - in trunk: . app/tools



Author: mitch
Date: Sun Jan 25 23:32:21 2009
New Revision: 27951
URL: http://svn.gnome.org/viewvc/gimp?rev=27951&view=rev

Log:
2009-01-26  Michael Natterer  <mitch gimp org>

	* app/tools/gimpregionselecttool.c
	(gimp_region_select_tool_button_release): move variables to local
	scope.



Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpregionselecttool.c

Modified: trunk/app/tools/gimpregionselecttool.c
==============================================================================
--- trunk/app/tools/gimpregionselecttool.c	(original)
+++ trunk/app/tools/gimpregionselecttool.c	Sun Jan 25 23:32:21 2009
@@ -188,8 +188,6 @@
 
   if (release_type != GIMP_BUTTON_RELEASE_CANCEL)
     {
-      gint off_x, off_y;
-
       if (GIMP_SELECTION_TOOL (tool)->function == SELECTION_ANCHOR)
         {
           if (gimp_image_get_floating_selection (display->image))
@@ -208,12 +206,10 @@
         }
       else if (region_sel->region_mask)
         {
-          if (options->sample_merged)
-            {
-              off_x = 0;
-              off_y = 0;
-            }
-          else
+          gint off_x = 0;
+          gint off_y = 0;
+
+          if (! options->sample_merged)
             {
               GimpDrawable *drawable;
 



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