diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-11-26 19:45:29 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-11-26 19:45:29 +0000 |
| commit | c94cbdb38d7ac2f70a669035b090140eae3cc05b (patch) | |
| tree | e886fee87a8c300f2165edbe5cd17d652b869cae /src/document.cpp | |
| parent | Change default display unit to 'px'. (diff) | |
| download | inkscape-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/document.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/document.cpp b/src/document.cpp index 84ec1eda3..25afc1311 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -596,10 +596,10 @@ SPDocument *SPDocument::doUnref() } /// guaranteed not to return nullptr -Inkscape::Util::Unit const* SPDocument::getDefaultUnit() const +Inkscape::Util::Unit const* SPDocument::getDisplayUnit() const { SPNamedView const* nv = sp_document_namedview(this, NULL); - return nv ? nv->getDefaultUnit() : unit_table.getUnit("px"); + return nv ? nv->getDisplayUnit() : unit_table.getUnit("px"); } /// guaranteed not to return nullptr |
