summaryrefslogtreecommitdiffstats
path: root/src/sp-polygon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-polygon.h')
-rw-r--r--src/sp-polygon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-polygon.h b/src/sp-polygon.h
index cb6c8a4f8..bac632a95 100644
--- a/src/sp-polygon.h
+++ b/src/sp-polygon.h
@@ -17,7 +17,7 @@
#define SP_POLYGON(obj) ((SPPolygon*)obj)
-#define SP_IS_POLYGON(obj) (dynamic_cast<const SPPolygon*>((SPObject*)obj))
+#define SP_IS_POLYGON(obj) (dynamic_cast<const SPPolygon*>((SPObject*)obj) != NULL)
class SPPolygon : public SPShape {
public: