Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-05-20 15:30:55 +0300
committerbubnikv <bubnikv@gmail.com>2019-05-20 15:30:55 +0300
commitcd1a445c836a82cef7e6d6a9970a05ef1bff2c3c (patch)
tree272c80bdfb21778635f748c05831b6a210f90cbd /src/slic3r/GUI
parent537c3714f2e693bb32a7747c3794906520d97048 (diff)
Fixed update of the project name in the status line in case the name
of the project contains dots.
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r--src/slic3r/GUI/MainFrame.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp
index 6b0d40fda..25f05a728 100644
--- a/src/slic3r/GUI/MainFrame.cpp
+++ b/src/slic3r/GUI/MainFrame.cpp
@@ -143,7 +143,9 @@ void MainFrame::update_title()
wxString title = wxEmptyString;
if (m_plater != nullptr)
{
- wxString project = from_path(into_path(m_plater->get_project_filename()).stem());
+ // m_plater->get_project_filename() produces file name including path, but excluding extension.
+ // Don't try to remove the extension, it would remove part of the file name after the last dot!
+ wxString project = from_path(into_path(m_plater->get_project_filename()).filename());
if (!project.empty())
title += (project + " - ");
}