summaryrefslogtreecommitdiffstats
path: root/src/sp-tref.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-09-14 20:43:15 +0000
committerMarkus Engel <markus.engel@tum.de>2013-09-14 20:43:15 +0000
commitbb4246887ab6a0833cc4d2263b31f951ce314061 (patch)
treef5621a11fa7d21ff20b301de9daf047551d38cfb /src/sp-tref.h
parentMerged from trunk (r12517). (diff)
downloadinkscape-bb4246887ab6a0833cc4d2263b31f951ce314061.tar.gz
inkscape-bb4246887ab6a0833cc4d2263b31f951ce314061.zip
Modified SP_IS_ macros.
(bzr r11608.1.122)
Diffstat (limited to 'src/sp-tref.h')
-rw-r--r--src/sp-tref.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-tref.h b/src/sp-tref.h
index 8be5afc18..f38a76e57 100644
--- a/src/sp-tref.h
+++ b/src/sp-tref.h
@@ -23,7 +23,7 @@
/* tref base class */
#define SP_TREF(obj) ((SPTRef*)obj)
-#define SP_IS_TREF(obj) (dynamic_cast<const SPTRef*>((SPObject*)obj))
+#define SP_IS_TREF(obj) (dynamic_cast<const SPTRef*>((SPObject*)obj) != NULL)
class SPTRef : public SPItem {
public: