summaryrefslogtreecommitdiffstats
path: root/src/spray-context.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-09-15 00:43:49 +0000
committerMarkus Engel <markus.engel@tum.de>2013-09-15 00:43:49 +0000
commit5cf6efefbfd06d723973b6517b442f0ee64416b7 (patch)
treeda00f2c24881267859ab46843398cb10d8fe2ff2 /src/spray-context.h
parentModified SP_IS_ macros. (diff)
downloadinkscape-5cf6efefbfd06d723973b6517b442f0ee64416b7.tar.gz
inkscape-5cf6efefbfd06d723973b6517b442f0ee64416b7.zip
Added runtime check in SP_-cast macros.
(bzr r11608.1.123)
Diffstat (limited to '')
-rw-r--r--src/spray-context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spray-context.h b/src/spray-context.h
index 2b20ae13d..4e1ab9dc0 100644
--- a/src/spray-context.h
+++ b/src/spray-context.h
@@ -21,7 +21,7 @@
#include <2geom/point.h>
#include "event-context.h"
-#define SP_SPRAY_CONTEXT(obj) ((SPSprayContext*)obj)
+#define SP_SPRAY_CONTEXT(obj) (dynamic_cast<SPSprayContext*>((SPEventContext*)obj))
#define SP_IS_SPRAY_CONTEXT(obj) (dynamic_cast<const SPSprayContext*>((const SPEventContext*)obj) != NULL)
namespace Inkscape {