summaryrefslogtreecommitdiffstats
path: root/src/text-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/text-context.h')
-rw-r--r--src/text-context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text-context.h b/src/text-context.h
index 196ecf576..95b812c2b 100644
--- a/src/text-context.h
+++ b/src/text-context.h
@@ -23,7 +23,7 @@
#include <2geom/point.h>
#include "libnrtype/Layout-TNG.h"
-#define SP_TEXT_CONTEXT(obj) ((SPTextContext*)obj)
+#define SP_TEXT_CONTEXT(obj) (dynamic_cast<SPTextContext*>((SPEventContext*)obj))
#define SP_IS_TEXT_CONTEXT(obj) (dynamic_cast<const SPTextContext*>((const SPEventContext*)obj) != NULL)
struct SPCtrlLine;