summaryrefslogtreecommitdiffstats
path: root/src/sp-paint-server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-paint-server.h')
-rw-r--r--src/sp-paint-server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-paint-server.h b/src/sp-paint-server.h
index 4c77bdaa6..89c4f6b1b 100644
--- a/src/sp-paint-server.h
+++ b/src/sp-paint-server.h
@@ -20,7 +20,7 @@
#include "sp-object.h"
#include "uri-references.h"
-#define SP_PAINT_SERVER(obj) ((SPPaintServer*)obj)
+#define SP_PAINT_SERVER(obj) (dynamic_cast<SPPaintServer*>((SPObject*)obj))
#define SP_IS_PAINT_SERVER(obj) (dynamic_cast<const SPPaintServer*>((SPObject*)obj) != NULL)
class SPPaintServer : public SPObject {