summaryrefslogtreecommitdiffstats
path: root/src/sp-root.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-root.h')
-rw-r--r--src/sp-root.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-root.h b/src/sp-root.h
index d9c96da50..6853a8c8a 100644
--- a/src/sp-root.h
+++ b/src/sp-root.h
@@ -20,7 +20,7 @@
#include "sp-item-group.h"
#define SP_ROOT(obj) ((SPRoot*)obj)
-#define SP_IS_ROOT(obj) (dynamic_cast<const SPRoot*>((SPObject*)obj))
+#define SP_IS_ROOT(obj) (dynamic_cast<const SPRoot*>((SPObject*)obj) != NULL)
class SPDefs;