summaryrefslogtreecommitdiffstats
path: root/src/connector-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/connector-context.h')
-rw-r--r--src/connector-context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connector-context.h b/src/connector-context.h
index 9b76fa5cd..1c4bfc34d 100644
--- a/src/connector-context.h
+++ b/src/connector-context.h
@@ -20,7 +20,7 @@
#include "libavoid/connector.h"
#include <glibmm/i18n.h>
-#define SP_CONNECTOR_CONTEXT(obj) ((SPConnectorContext*)obj)
+#define SP_CONNECTOR_CONTEXT(obj) (dynamic_cast<SPConnectorContext*>((SPEventContext*)obj))
//#define SP_IS_CONNECTOR_CONTEXT(obj) (dynamic_cast<const SPConnectorContext*>((const SPEventContext*)obj) != NULL)
struct SPKnot;