summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-09-22 17:47:37 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-09-22 17:47:37 +0000
commit2df0abfd438d90edb6056f0197ed9d27ce2cd1f1 (patch)
treead735614844c956d9799885b605dd3d866cd611f /src/document.cpp
parentFix CMake build (follow-up to r12567) (diff)
downloadinkscape-2df0abfd438d90edb6056f0197ed9d27ce2cd1f1.tar.gz
inkscape-2df0abfd438d90edb6056f0197ed9d27ce2cd1f1.zip
Fix adding viewBox to new documents.
Fixed bugs: - https://launchpad.net/bugs/1228660 - https://launchpad.net/bugs/1228693 - https://launchpad.net/bugs/1228852 (bzr r12575)
Diffstat (limited to '')
-rw-r--r--src/document.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 5e59a0a0c..967d049c2 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -450,11 +450,6 @@ SPDocument *SPDocument::createDoc(Inkscape::XML::Document *rdoc,
document->setCurrentPersp3DImpl(persp_impl);
}
- // Set viewBox if it doesn't exist
- if (!document->root->viewBox_set) {
- document->setViewBox(Geom::Rect::from_xywh(0, 0, document->getWidth().quantity, document->getHeight().quantity));
- }
-
DocumentUndo::setUndoSensitive(document, true);
// reset undo key when selection changes, so that same-key actions on different objects are not coalesced