diff options
Diffstat (limited to 'src/sp-shape.h')
| -rw-r--r-- | src/sp-shape.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp-shape.h b/src/sp-shape.h index 1a7af4e5e..5a9d49622 100644 --- a/src/sp-shape.h +++ b/src/sp-shape.h @@ -24,7 +24,8 @@ #define SP_TYPE_SHAPE (sp_shape_get_type ()) #define SP_SHAPE(obj) ((SPShape*)obj) -#define SP_IS_SHAPE(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPShape))) +//#define SP_IS_SHAPE(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPShape))) +#define SP_IS_SHAPE(obj) (dynamic_cast<const SPShape*>((SPObject*)obj)) #define SP_SHAPE_WRITE_PATH (1 << 2) |
