From cfda722666fc4d89a8fae1f34f0ff50f712f0415 Mon Sep 17 00:00:00 2001 From: Jonathan Neuhauser Date: Mon, 3 Feb 2025 00:25:24 +0100 Subject: [PATCH] Fix file extension defaulting to WMF if unset Fixes https://gitlab.com/inkscape/inkscape/-/issues/5490 --- src/extension/system.cpp | 2 +- src/file.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/system.cpp b/src/extension/system.cpp index f35ba3fe8e..e09a46f6dd 100644 --- a/src/extension/system.cpp +++ b/src/extension/system.cpp @@ -174,7 +174,7 @@ void save(Extension *key, SPDocument *doc, gchar const *filename, bool check_overwrite, bool official, Inkscape::Extension::FileSaveMethod save_method) { - Output *omod; + Output *omod = nullptr; if (key == nullptr) { DB::OutputList o; for (auto mod : db.get_output_list(o)) { diff --git a/src/file.cpp b/src/file.cpp index 067fc7f961..d399bc39da 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -262,7 +262,7 @@ file_save(Gtk::Window &parentWindow, checkoverwrite, official, save_method); } catch (Inkscape::Extension::Output::no_extension_found &e) { - gchar *text = g_strdup_printf(_("No Inkscape extension found to save document (%s). This may have been caused by an unknown filename extension."), display_name.c_str()); + gchar *text = g_strdup_printf(_("No Inkscape extension found to save document (%s). This may have been caused by an unknown or missing filename extension."), display_name.c_str()); SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("Document not saved.")); sp_ui_error_dialog(text); g_free(text); -- GitLab