summaryrefslogtreecommitdiffstats
path: root/src/sp-path.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-path.h')
-rw-r--r--src/sp-path.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-path.h b/src/sp-path.h
index 27d5b739d..21e830d4c 100644
--- a/src/sp-path.h
+++ b/src/sp-path.h
@@ -23,8 +23,8 @@ class SPCurve;
class CPath;
#define SP_TYPE_PATH (sp_path_get_type ())
-#define SP_PATH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_PATH, SPPath))
-#define SP_IS_PATH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_PATH))
+#define SP_PATH(obj) ((SPPath*)obj)
+#define SP_IS_PATH(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPPath)))
/**
* SVG <path> implementation