don't call a NULL GimpImageMapToolClass::get_operation().

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().


svn path=/trunk/; revision=24553
This commit is contained in:
Michael Natterer 2008-01-06 15:18:00 +00:00 committed by Michael Natterer
parent 50335ca918
commit 4324d68141
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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):

View file

@ -447,7 +447,8 @@ gimp_image_map_tool_create_map (GimpImageMapTool *tool)
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,