From c6dc24ac53d73d0d4581776e4e06b63a28d01396 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Fri, 14 Sep 2018 09:22:55 +0200 Subject: Fix a bug opening SVG from comand lines related to the DPI changes done. Thanks Mark for testing! --- src/file.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/file.cpp') 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(); } -- cgit v1.2.3