diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-02 18:45:20 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-02 18:45:20 +0000 |
| commit | 0a7e23844c3a43203de3f5207aecb278e84ee739 (patch) | |
| tree | 73368a7dd8367c23599f0027d63c1c0a06638865 /src/sp-rect.h | |
| parent | Registered classes with new factory. Hkern, Vkern and FeFuncX have to be rewr... (diff) | |
| download | inkscape-0a7e23844c3a43203de3f5207aecb278e84ee739.tar.gz inkscape-0a7e23844c3a43203de3f5207aecb278e84ee739.zip | |
Added virtual destructor to SPObject. Switched to new factory. Replaced some casts. Inkscape seems stable, car.svgz renders correctly to png.
(bzr r11608.1.70)
Diffstat (limited to 'src/sp-rect.h')
| -rw-r--r-- | src/sp-rect.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp-rect.h b/src/sp-rect.h index 98d4d1924..aaf090388 100644 --- a/src/sp-rect.h +++ b/src/sp-rect.h @@ -22,7 +22,8 @@ G_BEGIN_DECLS #define SP_TYPE_RECT (sp_rect_get_type ()) #define SP_RECT(obj) ((SPRect*)obj) -#define SP_IS_RECT(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPRect))) +//#define SP_IS_RECT(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPRect))) +#define SP_IS_RECT(obj) (dynamic_cast<const SPRect*>((SPObject*)obj)) class CRect; |
