FIX: the flow rate ratio crashes after load model

for third party printer
Jira: 5244

Change-Id: Idd829c9d99eeba9d180653ac8de4e51b9a0d6370
This commit is contained in:
zhimin.zeng 2023-11-30 16:53:30 +08:00 committed by Lane.Wei
parent 8b6d9175cf
commit af69cf1264
1 changed files with 2 additions and 1 deletions

View File

@ -8818,7 +8818,8 @@ void Plater::calib_flowrate(int pass)
{
if (pass != 1 && pass != 2) return;
const auto calib_name = wxString::Format(L"Flowrate Test - Pass%d", pass);
new_project(false, false, calib_name);
if (new_project(false, false, calib_name) == wxID_CANCEL)
return;
wxGetApp().mainframe->select_tab(size_t(MainFrame::tp3DEditor));