summaryrefslogtreecommitdiffstats
path: root/src/sp-textpath.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/sp-textpath.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 'src/sp-textpath.h')
-rw-r--r--src/sp-textpath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-textpath.h b/src/sp-textpath.h
index 1191a59f6..075743d8e 100644
--- a/src/sp-textpath.h
+++ b/src/sp-textpath.h
@@ -9,7 +9,7 @@ class SPUsePath;
class Path;
-#define SP_TEXTPATH(obj) ((SPTextPath*)obj)
+#define SP_TEXTPATH(obj) (dynamic_cast<SPTextPath*>((SPObject*)obj))
#define SP_IS_TEXTPATH(obj) (dynamic_cast<const SPTextPath*>((SPObject*)obj) != NULL)
class SPTextPath : public SPItem {