summaryrefslogtreecommitdiffstats
path: root/src/sp-object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-object.h')
-rw-r--r--src/sp-object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-object.h b/src/sp-object.h
index 449049611..077633400 100644
--- a/src/sp-object.h
+++ b/src/sp-object.h
@@ -18,7 +18,7 @@
class SPObject;
#define SP_OBJECT(obj) ((SPObject*)obj)
-#define SP_IS_OBJECT(obj) (dynamic_cast<const SPObject*>((SPObject*)obj))
+#define SP_IS_OBJECT(obj) (dynamic_cast<const SPObject*>((SPObject*)obj) != NULL)
/* Async modification flags */
#define SP_OBJECT_MODIFIED_FLAG (1 << 0)