gimp r24553 - in trunk: . app/tools



Author: mitch
Date: Sun Jan  6 15:18:00 2008
New Revision: 24553
URL: http://svn.gnome.org/viewvc/gimp?rev=24553&view=rev

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

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_create_map):
	don't call a NULL GimpImageMapToolClass::get_operation().



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

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sun Jan  6 15:18:00 2008
@@ -1,5 +1,10 @@
 2008-01-06  Michael Natterer  <mitch gimp org>
 
+	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_create_map):
+	don't call a NULL GimpImageMapToolClass::get_operation().
+
+2008-01-06  Michael Natterer  <mitch gimp org>
+
 	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_gegl_notify):
 	toggle the image map mode only if an image map currently exists.
 	Fixes crash when toggling "Use GEGL" while the tool is not active.

Modified: trunk/app/tools/gimpimagemaptool.c
==============================================================================
--- trunk/app/tools/gimpimagemaptool.c	(original)
+++ trunk/app/tools/gimpimagemaptool.c	Sun Jan  6 15:18:00 2008
@@ -447,7 +447,8 @@
       g_object_unref (tool->image_map);
     }
 
-  if (config->use_gegl && ! tool->operation)
+  if (config->use_gegl && ! tool->operation &&
+      GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->get_operation)
     tool->operation = GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->get_operation (tool);
 
   tool->image_map = gimp_image_map_new (tool->drawable,



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