summaryrefslogtreecommitdiffstats
path: root/src/interface.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/interface.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/interface.cpp')
-rw-r--r--src/interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index e57092e2b..f411989ce 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -324,7 +324,7 @@ sp_ui_close_view(GtkWidget */*widget*/)
SPDocument *doc = SPDocument::createNewDoc( templateUri.c_str() , TRUE, true );
// Set viewBox if it doesn't exist
if (!doc->getRoot()->viewBox_set) {
- 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())));
}
dt->change_document(doc);
sp_namedview_window_from_document(dt);