summaryrefslogtreecommitdiffstats
path: root/src/box3d.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-12-26 01:57:30 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-12-26 01:57:30 +0000
commit4edc4f71fac7b37ab505bba7541b833b545570f8 (patch)
tree65ca78e123b6d84d9e19c3c563402ba0d8f1038c /src/box3d.cpp
parentFix bug #178004 [assert when saving as plain svg] (diff)
downloadinkscape-4edc4f71fac7b37ab505bba7541b833b545570f8.tar.gz
inkscape-4edc4f71fac7b37ab505bba7541b833b545570f8.zip
Don't store special attributes/types when saving 3D boxes to plain SVG (so that they show up correctly when reopening files).
(bzr r4303)
Diffstat (limited to 'src/box3d.cpp')
-rw-r--r--src/box3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp
index b1f59253f..4044b5647 100644
--- 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) {