Commit cd7972a8 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

call gimp_image_flush() after committing the image_map so the menus are

2004-11-11  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_response):
	call gimp_image_flush() after committing the image_map so the
	menus are up-to-date. Fixes bug #157914.
parent c111576d
2004-11-11 Michael Natterer <mitch@gimp.org>
* app/tools/gimpimagemaptool.c (gimp_image_map_tool_response):
call gimp_image_flush() after committing the image_map so the
menus are up-to-date. Fixes bug #157914.
2004-11-11 Philip Lafleur <plafleur@cvs.gnome.org>
 
* app/display/gimpdisplayshell-preview.c: Use the transform
......
......@@ -480,8 +480,7 @@ gimp_image_map_tool_response (GtkWidget *widget,
gint response_id,
GimpImageMapTool *image_map_tool)
{
GimpTool *tool = GIMP_TOOL (image_map_tool);
GimpImageMapOptions *options;
GimpTool *tool = GIMP_TOOL (image_map_tool);
switch (response_id)
{
......@@ -493,22 +492,24 @@ gimp_image_map_tool_response (GtkWidget *widget,
case GTK_RESPONSE_OK:
gtk_widget_hide (image_map_tool->shell);
gimp_tool_control_set_preserve (tool->control, TRUE);
if (image_map_tool->image_map)
{
GimpImageMapOptions *options;
options = GIMP_IMAGE_MAP_OPTIONS (tool->tool_info->tool_options);
options = GIMP_IMAGE_MAP_OPTIONS (tool->tool_info->tool_options);
if (! options->preview)
{
gimp_image_map_tool_map (image_map_tool);
}
gimp_tool_control_set_preserve (tool->control, TRUE);
if (! options->preview)
gimp_image_map_tool_map (image_map_tool);
if (image_map_tool->image_map)
{
gimp_image_map_commit (image_map_tool->image_map);
image_map_tool->image_map = NULL;
}
gimp_tool_control_set_preserve (tool->control, FALSE);
gimp_tool_control_set_preserve (tool->control, FALSE);
gimp_image_flush (tool->gdisp->gimage);
}
tool->gdisp = NULL;
tool->drawable = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment