diff options
Diffstat (limited to 'src/sp-path.h')
| -rw-r--r-- | src/sp-path.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp-path.h b/src/sp-path.h index a9a8a217d..a442c49dd 100644 --- a/src/sp-path.h +++ b/src/sp-path.h @@ -24,7 +24,8 @@ class CPath; #define SP_TYPE_PATH (sp_path_get_type ()) #define SP_PATH(obj) ((SPPath*)obj) -#define SP_IS_PATH(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPPath))) +//#define SP_IS_PATH(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPPath))) +#define SP_IS_PATH(obj) (dynamic_cast<const SPPath*>((SPObject*)obj)) /** * SVG <path> implementation |
