summaryrefslogtreecommitdiffstats
path: root/src/sp-clippath.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-clippath.h')
-rw-r--r--src/sp-clippath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-clippath.h b/src/sp-clippath.h
index e5b65b1b8..ba7a90a57 100644
--- a/src/sp-clippath.h
+++ b/src/sp-clippath.h
@@ -15,7 +15,7 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
-#define SP_CLIPPATH(obj) ((SPClipPath*)obj)
+#define SP_CLIPPATH(obj) (dynamic_cast<SPClipPath*>((SPObject*)obj))
#define SP_IS_CLIPPATH(obj) (dynamic_cast<const SPClipPath*>((SPObject*)obj) != NULL)
struct SPClipPathView;