summaryrefslogtreecommitdiffstats
path: root/src/sp-gradient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-gradient.h')
-rw-r--r--src/sp-gradient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-gradient.h b/src/sp-gradient.h
index 157edf669..46eb41cdb 100644
--- a/src/sp-gradient.h
+++ b/src/sp-gradient.h
@@ -41,7 +41,7 @@
class SPGradientReference;
class SPStop;
-#define SP_GRADIENT(obj) ((SPGradient*)obj)
+#define SP_GRADIENT(obj) (dynamic_cast<SPGradient*>((SPObject*)obj))
#define SP_IS_GRADIENT(obj) (dynamic_cast<const SPGradient*>((SPObject*)obj) != NULL)
enum SPGradientType {