summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/node-tool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tool/node-tool.h')
-rw-r--r--src/ui/tool/node-tool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tool/node-tool.h b/src/ui/tool/node-tool.h
index 779cf98e6..ce022cec6 100644
--- a/src/ui/tool/node-tool.h
+++ b/src/ui/tool/node-tool.h
@@ -30,7 +30,7 @@ namespace Inkscape {
}
}
-#define INK_NODE_TOOL(obj) ((InkNodeTool*)obj)
+#define INK_NODE_TOOL(obj) (dynamic_cast<InkNodeTool*>((SPEventContext*)obj))
#define INK_IS_NODE_TOOL(obj) (dynamic_cast<const InkNodeTool*>((const SPEventContext*)obj))
class InkNodeTool : public SPEventContext {