From: buliabyak Date: Sat, 17 Mar 2007 05:01:37 +0000 (+0000) Subject: move creating style after the signals are set up, so that style does not miss the... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9bf2929cac5f7a9ab3cdf9802b98fce56a8b0004;p=inkscape.git move creating style after the signals are set up, so that style does not miss the object's release signal --- diff --git a/src/sp-object.cpp b/src/sp-object.cpp index 5c502c335..03dc3ec28 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -174,12 +174,6 @@ sp_object_init(SPObject *object) object->repr = NULL; object->id = NULL; - // FIXME: now we create style for all objects, but per SVG, only the following can have style attribute: - // vg, g, defs, desc, title, symbol, use, image, switch, path, rect, circle, ellipse, line, polyline, - // polygon, text, tspan, tref, textPath, altGlyph, glyphRef, marker, linearGradient, radialGradient, - // stop, pattern, clipPath, mask, filter, feImage, a, font, glyph, missing-glyph, foreignObject - object->style = sp_style_new_from_object(object); - object->_collection_policy = SPObject::COLLECT_WITH_PARENT; new (&object->_release_signal) sigc::signal(); @@ -188,6 +182,12 @@ sp_object_init(SPObject *object) new (&object->_position_changed_signal) sigc::signal(); object->_successor = NULL; + // FIXME: now we create style for all objects, but per SVG, only the following can have style attribute: + // vg, g, defs, desc, title, symbol, use, image, switch, path, rect, circle, ellipse, line, polyline, + // polygon, text, tspan, tref, textPath, altGlyph, glyphRef, marker, linearGradient, radialGradient, + // stop, pattern, clipPath, mask, filter, feImage, a, font, glyph, missing-glyph, foreignObject + object->style = sp_style_new_from_object(object); + object->_label = NULL; object->_default_label = NULL; }