gimp r24618 - in trunk: . app/tools



Author: mitch
Date: Tue Jan 15 14:39:41 2008
New Revision: 24618
URL: http://svn.gnome.org/viewvc/gimp?rev=24618&view=rev

Log:
2008-01-15  Michael Natterer  <mitch gimp org>

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_notify_preview):
	check for image_map_tool->image_map also when the preview is
	switched on, not only when it's switched off.



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

Modified: trunk/app/tools/gimpimagemaptool.c
==============================================================================
--- trunk/app/tools/gimpimagemaptool.c	(original)
+++ trunk/app/tools/gimpimagemaptool.c	Tue Jan 15 14:39:41 2008
@@ -602,17 +602,17 @@
   GimpTool            *tool    = GIMP_TOOL (image_map_tool);
   GimpImageMapOptions *options = GIMP_IMAGE_MAP_OPTIONS (config);
 
-  if (options->preview)
+  if (image_map_tool->image_map)
     {
-      gimp_tool_control_set_preserve (tool->control, TRUE);
+      if (options->preview)
+        {
+          gimp_tool_control_set_preserve (tool->control, TRUE);
 
-      gimp_image_map_tool_map (image_map_tool);
+          gimp_image_map_tool_map (image_map_tool);
 
-      gimp_tool_control_set_preserve (tool->control, FALSE);
-    }
-  else
-    {
-      if (image_map_tool->image_map)
+          gimp_tool_control_set_preserve (tool->control, FALSE);
+        }
+      else
         {
           gimp_tool_control_set_preserve (tool->control, TRUE);
 
@@ -637,7 +637,7 @@
   tool    = GIMP_TOOL (image_map_tool);
   options = GIMP_IMAGE_MAP_TOOL_GET_OPTIONS (tool);
 
-  if (options->preview && image_map_tool->image_map)
+  if (image_map_tool->image_map && options->preview)
     {
       gimp_tool_control_set_preserve (tool->control, TRUE);
 



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