app: allow to opionally not implement GimpImageMapTool::map()

it's not needed for many tools that have no legacy implementation.
This commit is contained in:
Michael Natterer
2012-03-13 23:45:38 +01:00
parent d258af9ea9
commit 08dd7901b1

View File

@ -540,7 +540,8 @@ gimp_image_map_tool_map (GimpImageMapTool *tool)
gint off_x, off_y;
GeglRectangle visible;
GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->map (tool);
if (GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->map)
GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool)->map (tool);
gimp_display_shell_untransform_viewport (shell, &x, &y, &w, &h);