summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-10-24 15:03:01 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-10-24 15:03:01 +0000
commit651b367a2e01f918435d829394baff45537f6b91 (patch)
treea99fb20cf0acd5fb91cd11833258a9aa222d4d3a /src/file.cpp
parentfix crash bug 1237676 (diff)
downloadinkscape-651b367a2e01f918435d829394baff45537f6b91.tar.gz
inkscape-651b367a2e01f918435d829394baff45537f6b91.zip
fix bug "some of the locale-based templates cause objects to be resized when default units are changed" #1236257
Fixed bugs: - https://launchpad.net/bugs/1236257 (bzr r12717)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 8a7b177c0..f978ec66e 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -144,7 +144,7 @@ SPDesktop *sp_file_new(const std::string &templ)
// Set viewBox if it doesn't exist
if (!doc->getRoot()->viewBox_set) {
DocumentUndo::setUndoSensitive(doc, false);
- doc->setViewBox(Geom::Rect::from_xywh(0, 0, doc->getWidth().quantity, doc->getHeight().quantity));
+ doc->setViewBox(Geom::Rect::from_xywh(0, 0, doc->getWidth().value(doc->getDefaultUnit()), doc->getHeight().value(doc->getDefaultUnit())));
DocumentUndo::setUndoSensitive(doc, true);
}