diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-01-02 08:13:29 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-01-02 08:13:29 +0000 |
| commit | 52dfaa02e88ce72eb55bade0ed6ebb520377a3de (patch) | |
| tree | 5ce60bf475d3b4fe87b1ca1955dcbd68d2647518 /src | |
| parent | Prevent reverting a drawing from closing Inkscape when only one window is open. (diff) | |
| download | inkscape-52dfaa02e88ce72eb55bade0ed6ebb520377a3de.tar.gz inkscape-52dfaa02e88ce72eb55bade0ed6ebb520377a3de.zip | |
Avoid creating a new document before opening an old document.
Diffstat (limited to 'src')
| -rw-r--r-- | src/inkscape-application.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inkscape-application.cpp b/src/inkscape-application.cpp index 4c39ee51c..0ae28f16c 100644 --- a/src/inkscape-application.cpp +++ b/src/inkscape-application.cpp @@ -334,8 +334,8 @@ ConcreteInkscapeApplication<Gtk::Application>::create_window(const Glib::RefPtr< { SPDesktop* desktop = nullptr; if (file) { - desktop = sp_file_new_default(); sp_file_open(file->get_parse_name(), nullptr, false, true); + desktop = SP_ACTIVE_DESKTOP; } else { desktop = sp_file_new_default(); } |
