summaryrefslogtreecommitdiffstats
path: root/src/dropper-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dropper-context.h')
-rw-r--r--src/dropper-context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dropper-context.h b/src/dropper-context.h
index 9c727902a..6e1015644 100644
--- a/src/dropper-context.h
+++ b/src/dropper-context.h
@@ -14,7 +14,7 @@
#include "event-context.h"
-#define SP_DROPPER_CONTEXT(obj) ((SPDropperContext*)obj)
+#define SP_DROPPER_CONTEXT(obj) (dynamic_cast<SPDropperContext*>((SPEventContext*)obj))
#define SP_IS_DROPPER_CONTEXT(obj) (dynamic_cast<const SPDropperContext*>((const SPEventContext*)obj) != NULL)
enum {