[gimp/goat-invasion: 8/401] app: allow to opionally not implement GimpImageMapTool::map()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 8/401] app: allow to opionally not implement GimpImageMapTool::map()
- Date: Mon, 2 Apr 2012 11:48:48 +0000 (UTC)
commit 8f8630cf2e8d582eab41582f59682f7315c2e333
Author: Michael Natterer <mitch gimp org>
Date: Tue Mar 13 23:45:38 2012 +0100
app: allow to opionally not implement GimpImageMapTool::map()
it's not needed for many tools that have no legacy implementation.
app/tools/gimpimagemaptool.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpimagemaptool.c b/app/tools/gimpimagemaptool.c
index a443823..3087096 100644
--- a/app/tools/gimpimagemaptool.c
+++ b/app/tools/gimpimagemaptool.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]