diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2018-09-14 07:22:55 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2018-09-14 07:22:55 +0000 |
| commit | c6dc24ac53d73d0d4581776e4e06b63a28d01396 (patch) | |
| tree | bfa221251f156d9ca614fd51a314a889d558e724 /src/file.cpp | |
| parent | Merge branch 'misc-typos' of gitlab.com:luzpaz/inkscape (diff) | |
| download | inkscape-c6dc24ac53d73d0d4581776e4e06b63a28d01396.tar.gz inkscape-c6dc24ac53d73d0d4581776e4e06b63a28d01396.zip | |
Fix a bug opening SVG from comand lines related to the DPI changes done. Thanks Mark for testing!
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/file.cpp b/src/file.cpp index 48218e617..dd609de50 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -217,7 +217,8 @@ bool sp_file_open(const Glib::ustring &uri, if (desktop) { desktop->setWaitingCursor(); } - + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setString("/options/openmethod/value", "open"); SPDocument *doc = nullptr; bool cancelled = false; try { @@ -230,7 +231,7 @@ bool sp_file_open(const Glib::ustring &uri, doc = nullptr; cancelled = true; } - + prefs->setString("/options/openmethod/value", "done"); if (desktop) { desktop->clearWaitingCursor(); } |
