summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f729dda)
raw | patch | inline | side by side (parent: f729dda)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 26 Dec 2007 01:51:37 +0000 (01:51 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 26 Dec 2007 01:51:37 +0000 (01:51 +0000) |
src/persp3d.cpp | patch | blob | history |
diff --git a/src/persp3d.cpp b/src/persp3d.cpp
index 68c27c8e2629d5e22dc856efa5d16bc1b5428fae..75513b76baac191dde4c5275ebcc8f0fe67b829e 100644 (file)
--- a/src/persp3d.cpp
+++ b/src/persp3d.cpp
Persp3D *persp = SP_PERSP3D(object);
if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
- repr = SP_OBJECT_REPR(persp3d_create_xml_element (document));
+ // this is where we end up when saving as plain SVG (also in other circumstances?);
+ // hence we don't set the sodipodi:type attribute
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
+ repr = xml_doc->createElement("inkscape:perspective");
}
if (flags & SP_OBJECT_WRITE_EXT) {
persp3d_add_box_transform (Persp3D *persp, SPBox3D *box) {
std::map<SPBox3D *, bool>::iterator i = persp->boxes_transformed.find(box);
if (i != persp->boxes_transformed.end() && (*i).second == true) {
- g_print ("Warning! In %s (%d): trying to add transform status for box %d twice when it's already listed as true.\n",
- SP_OBJECT_REPR(persp)->attribute("id"), persp->my_counter,
- box->my_counter, persp->boxes_transformed[box]);
+ g_print ("Warning! In %s (%d): trying to add transform status for box %d twice when it's already listed as true.\n", SP_OBJECT_REPR(persp)->attribute("id"), persp->my_counter, box->my_counter);
return;
}