diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-06-04 22:58:45 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2017-06-04 22:58:45 +0000 |
| commit | 99cc870e2202dd3bd4c63be34bb45ba09aa0bd0e (patch) | |
| tree | 26e0236f3ebb7629d1d361aa6a3636edc8dc0ba6 /src/document.cpp | |
| parent | Merge in render frame extension (diff) | |
| download | inkscape-99cc870e2202dd3bd4c63be34bb45ba09aa0bd0e.tar.gz inkscape-99cc870e2202dd3bd4c63be34bb45ba09aa0bd0e.zip | |
Porting the pre-92 file update message from 0.92.x to trunk:
New dialog when opening pre-0.92 files (with 90 dpi).
I implemented it mostly based on mizmo's UI proposal (thanks!), with additional inputs from su_v with a few bugfixes from jabiertxof
Also adds a commandline option --convert-dpi-method=[none|scale-viewbox|scale-document] to be able to batch convert files.
Fixed bugs:
- https://launchpad.net/bugs/1659229
(bzr r15729)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp index 4fcc2b098..2141f65e9 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -469,6 +469,11 @@ SPDocument *SPDocument::createDoc(Inkscape::XML::Document *rdoc, sp_file_convert_font_name(document); } + /** Fix dpi (pre-92 files) **/ + if ( !(INKSCAPE.use_gui()) && sp_version_inside_range( document->root->version.inkscape, 0, 1, 0, 92 ) ) { + sp_file_convert_dpi(document); + } + return document; } |
