summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-03-13 04:43:49 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-03-13 04:43:49 +0000
commitbc16612ddaf43617955388d11bbdf2d5eb660210 (patch)
tree9cfad66c93fcbb07a61578ece7fb07d4dff720d6 /src/sp-object.cpp
parentextend the range of spacings (diff)
downloadinkscape-bc16612ddaf43617955388d11bbdf2d5eb660210.tar.gz
inkscape-bc16612ddaf43617955388d11bbdf2d5eb660210.zip
comment
(bzr r2629)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index b97aa4513..5c502c335 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -174,6 +174,10 @@ 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;