summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 850cbc2)
raw | patch | inline | side by side (parent: 850cbc2)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 26 Dec 2007 01:57:30 +0000 (01:57 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 26 Dec 2007 01:57:30 +0000 (01:57 +0000) |
src/box3d-side.cpp | patch | blob | history | |
src/box3d.cpp | patch | blob | history |
diff --git a/src/box3d-side.cpp b/src/box3d-side.cpp
index d1111aacb7b01f7a239b1f0c59c7e80593dc2c94..e4f60075b943c91d27d9616ee1677d20422fd79b 100644 (file)
--- a/src/box3d-side.cpp
+++ b/src/box3d-side.cpp
Box3DSide *side = SP_BOX3D_SIDE (object);
if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
- g_print ("Do we ever end up here?\n");
+ // this is where we end up when saving as plain SVG (also in other circumstances?)
+ // thus we don' set "sodipodi:type" so that the box is only saved as an ordinary svg:path
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
repr = xml_doc->createElement("svg:path");
- repr->setAttribute("sodipodi:type", "inkscape:box3dside"); // FIXME: Does this double the
}
if (flags & SP_OBJECT_WRITE_EXT) {
sp_repr_set_int(repr, "inkscape:box3dsidetype", side->dir1 ^ side->dir2 ^ side->front_or_rear);
}
- sp_shape_set_shape ((SPShape *) object); // FIXME: necessary? YES!
+ sp_shape_set_shape ((SPShape *) object);
/* Duplicate the path */
SPCurve *curve = ((SPShape *) object)->curve;
diff --git a/src/box3d.cpp b/src/box3d.cpp
index b1f59253f3e673ac983cb473c8cc2b90b2f1ae86..4044b5647350bdfe772d67a09fbdb5080c5ae509 100644 (file)
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
@@ -280,10 +280,10 @@ static Inkscape::XML::Node *box3d_write(SPObject *object, Inkscape::XML::Node *r
SPBox3D *box = SP_BOX3D(object);
if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
- g_print ("Do we ever end up here?\n");
+ // this is where we end up when saving as plain SVG (also in other circumstances?)
+ // thus we don' set "sodipodi:type" so that the box is only saved as an ordinary svg:g
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
repr = xml_doc->createElement("svg:g");
- repr->setAttribute("sodipodi:type", "inkscape:box3d");
}
if (flags & SP_OBJECT_WRITE_EXT) {