From 6a294a919a71439b85e28037e04e853468869050 Mon Sep 17 00:00:00 2001 From: Christoph Raab Date: Sun, 22 Dec 2024 16:32:27 +0100 Subject: [PATCH] Batch export: swap is-actually-a-file error and create-missing-directory option to the intended cases --- src/ui/dialog/export-batch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/dialog/export-batch.cpp b/src/ui/dialog/export-batch.cpp index fec5188d07..bfa7732423 100644 --- a/src/ui/dialog/export-batch.cpp +++ b/src/ui/dialog/export-batch.cpp @@ -657,7 +657,7 @@ void BatchExport::onExport() if (!Inkscape::IO::file_test(path.c_str(), (GFileTest)(G_FILE_TEST_IS_DIR))) { auto const window = _desktop->getInkscapeWindow(); - if (!Inkscape::IO::file_test(path.c_str(), (GFileTest)(G_FILE_TEST_EXISTS))) { + if (Inkscape::IO::file_test(path.c_str(), (GFileTest)(G_FILE_TEST_EXISTS))) { auto dialog = Gtk::MessageDialog(*window, _("Can not save to a directory that is actually a file."), true, Gtk::MessageType::ERROR, Gtk::ButtonsType::OK); UI::dialog_run(dialog); return; -- GitLab