diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-04-03 06:04:53 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-04-03 06:04:53 +0000 |
| commit | 6abc81b736587333d14ed4af28a8083c4f5fec80 (patch) | |
| tree | 88561e4e66e44a02e7dbcbd031df010002230099 /src/sp-shape.cpp | |
| parent | improve jvm search to allow an embedded jre. fix missed "public" on method (diff) | |
| download | inkscape-6abc81b736587333d14ed4af28a8083c4f5fec80.tar.gz inkscape-6abc81b736587333d14ed4af28a8083c4f5fec80.zip | |
Fixed LPE crash with unitialized pointer
(bzr r5318)
Diffstat (limited to 'src/sp-shape.cpp')
| -rw-r--r-- | src/sp-shape.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index 1556226f1..e45245793 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -1,5 +1,3 @@ -#define __SP_SHAPE_C__ - /* * Base class for shapes, including <path> element * @@ -100,16 +98,12 @@ sp_shape_get_type (void) static void sp_shape_class_init (SPShapeClass *klass) { - GObjectClass *gobject_class; - SPObjectClass *sp_object_class; - SPItemClass * item_class; - SPLPEItemClass * lpe_item_class; - - gobject_class = (GObjectClass *) klass; - sp_object_class = (SPObjectClass *) klass; - item_class = (SPItemClass *) klass; + GObjectClass *gobject_class = G_OBJECT_CLASS(klass); + SPObjectClass *sp_object_class = SP_OBJECT_CLASS(klass); + SPItemClass * item_class = SP_ITEM_CLASS(klass); + SPLPEItemClass * lpe_item_class = SP_LPE_ITEM_CLASS(klass); - parent_class = (SPLPEItemClass *)g_type_class_peek_parent (klass); + parent_class = (SPLPEItemClass *)g_type_class_peek_parent (klass); gobject_class->finalize = sp_shape_finalize; |
