diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-04-19 22:16:59 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-04-24 13:16:46 +0000 |
| commit | 1633a91c3a1fd6eb4d981d9117c7a4ba96d1f562 (patch) | |
| tree | ace2405514c65b1d40e7395e8e1e37c5399d1066 /src/document.cpp | |
| parent | Keep Document Grid spacing on change and save (diff) | |
| download | inkscape-1633a91c3a1fd6eb4d981d9117c7a4ba96d1f562.tar.gz inkscape-1633a91c3a1fd6eb4d981d9117c7a4ba96d1f562.zip | |
Removes style on empty lines
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 680e98f6a..96dce8d2c 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -450,6 +450,11 @@ SPDocument *SPDocument::createDoc(Inkscape::XML::Document *rdoc, sp_file_convert_font_name(document); } + /** Fix first line spacing in legacy documents (pre-1.0 files) **/ + if ( sp_version_inside_range( document->root->version.inkscape, 0, 1, 1, 0 ) ) { + sp_file_remove_style_on_empty_lines(document); + } + /** Fix dpi (pre-92 files). With GUI fixed in Inkscape::Application::fix_document. **/ if ( !(INKSCAPE.use_gui()) && sp_version_inside_range( document->root->version.inkscape, 0, 1, 0, 92 ) ) { sp_file_convert_dpi(document); |
