From 355a7d6a8c5a503a0cbdad16ab58e01d27c5ac63 Mon Sep 17 00:00:00 2001 From: Enrico Turri <enricoturri@seznam.cz> Date: Thu, 19 Sep 2019 14:01:17 +0200 Subject: [PATCH] Fixed empty filename when trying to export a plate where no object is selected and no object is printable --- src/slic3r/GUI/Plater.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 0dc7519e8..7457368ce 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2518,6 +2518,10 @@ wxString Plater::priv::get_export_file(GUI::FileType file_type) if (output_file.empty()) // Find the file name of the first printable object. output_file = this->model.propose_export_file_name_and_path(); + + if (output_file.empty() && !model.objects.empty()) + // Find the file name of the first object. + output_file = this->model.objects[0]->get_export_filename(); } wxString dlg_title;