summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-11-26 19:45:29 +0000
committertavmjong-free <tavmjong@free.fr>2014-11-26 19:45:29 +0000
commitc94cbdb38d7ac2f70a669035b090140eae3cc05b (patch)
treee886fee87a8c300f2165edbe5cd17d652b869cae /src/file.cpp
parentChange default display unit to 'px'. (diff)
downloadinkscape-c94cbdb38d7ac2f70a669035b090140eae3cc05b.tar.gz
inkscape-c94cbdb38d7ac2f70a669035b090140eae3cc05b.zip
Change getDefaultUnit() to getDisplayUnit() to better reflect value returned by function.
(bzr r13774)
Diffstat (limited to '')
-rw-r--r--src/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 2afb932b8..a933a9611 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().value(doc->getDefaultUnit()), doc->getHeight().value(doc->getDefaultUnit())));
+ doc->setViewBox(Geom::Rect::from_xywh(0, 0, doc->getWidth().value(doc->getDisplayUnit()), doc->getHeight().value(doc->getDisplayUnit())));
DocumentUndo::setUndoSensitive(doc, true);
}