diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-06-01 19:13:32 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-06-01 19:13:32 +0000 |
| commit | de91fb305ef9afbead53d70421db60f3fb7d8a4c (patch) | |
| tree | 9692258376e403ae7a5e175bc78d2c1159a44f39 /src/document.cpp | |
| parent | Replace two instances of getSVGUnit() by getDocumentScale(). (diff) | |
| download | inkscape-de91fb305ef9afbead53d70421db60f3fb7d8a4c.tar.gz inkscape-de91fb305ef9afbead53d70421db60f3fb7d8a4c.zip | |
Remove last use of getSVGUnit() and remove all remnants of this abomination.
(bzr r14939)
Diffstat (limited to '')
| -rw-r--r-- | src/document.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/document.cpp b/src/document.cpp index 2500a5cee..e9388893e 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -589,15 +589,6 @@ Inkscape::Util::Unit const* SPDocument::getDisplayUnit() const return nv ? nv->getDisplayUnit() : unit_table.getUnit("px"); } -/// guaranteed not to return nullptr -// returns 'px' units as default, like legacy Inkscape -// THIS SHOULD NOT BE USED... INSTEAD USE DOCUMENT SCALE -Inkscape::Util::Unit const& SPDocument::getSVGUnit() const -{ - SPNamedView const* nv = sp_document_namedview(this, NULL); - return nv ? nv->getSVGUnit() : *unit_table.getUnit("px"); -} - /// Sets document scale (by changing viewBox) void SPDocument::setDocumentScale( double scaleX, double scaleY ) { |
