summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-03-06 22:26:46 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-03-06 22:26:46 +0000
commit96b8cba0c6f8de6117471aff42d164081d53e746 (patch)
tree6ff481d338e1fb16e21740595ca98141aa76d427 /src/document.cpp
parentadd preferences for path flashing on mouseover (diff)
downloadinkscape-96b8cba0c6f8de6117471aff42d164081d53e746.tar.gz
inkscape-96b8cba0c6f8de6117471aff42d164081d53e746.zip
If present, use existent perspective as default for new boxes when opening a document.
(bzr r4978)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp
index cdebaabba..e537e43de 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -351,7 +351,10 @@ sp_document_create(Inkscape::XML::Document *rdoc,
// But this is probably a bad idea since we need to adapt it for every change of selection, which will
// completely clutter the undo history. Maybe rather save it to prefs on exit and re-read it on startup?
- document->current_persp3d = persp3d_create_xml_element (document);
+ document->current_persp3d = persp3d_document_first_persp(document);
+ if (!document->current_persp3d) {
+ document->current_persp3d = persp3d_create_xml_element (document);
+ }
sp_document_set_undo_sensitive(document, true);