diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-06-08 08:40:39 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-06-08 08:40:39 +0000 |
| commit | 1a5073c6fe3981ff0645490f28777d35bcb3b25b (patch) | |
| tree | f16cc8bbf4eef8a4550a122b246af6234f4c26dd /src/sp-namedview.cpp | |
| parent | Remove unused svg-units variable. (diff) | |
| download | inkscape-1a5073c6fe3981ff0645490f28777d35bcb3b25b.tar.gz inkscape-1a5073c6fe3981ff0645490f28777d35bcb3b25b.zip | |
Really remove last of svg_units.
(bzr r14964)
Diffstat (limited to 'src/sp-namedview.cpp')
| -rw-r--r-- | src/sp-namedview.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp index 850163720..616ec3921 100644 --- a/src/sp-namedview.cpp +++ b/src/sp-namedview.cpp @@ -261,16 +261,6 @@ void SPNamedView::build(SPDocument *document, Inkscape::XML::Node *repr) { // backwards compatibility with grid settings (pre 0.46) sp_namedview_generate_old_grid(this, document, repr); - - // If viewbox defined: try to calculate the SVG unit from document width and viewbox - if (document->getRoot()->viewBox_set) { - Inkscape::Util::Quantity svgwidth = document->getWidth(); - Geom::Rect viewbox = document->getRoot()->viewBox; - double factor = svgwidth.value(unit_table.primary(Inkscape::Util::UNIT_TYPE_LINEAR)) / viewbox.width(); - svg_units = unit_table.findUnit(factor, Inkscape::Util::UNIT_TYPE_LINEAR); - } else { // force the document units to be px - repr->setAttribute("inkscape:document-units", "px"); - } } void SPNamedView::release() { |
