Fixed encoding of undo/redo snapshot names created through

TakeSnapshot class (implicit std::string/wxString conversion)
This commit is contained in:
Lukas Matena 2021-08-31 12:05:06 +02:00
parent 788d114a2f
commit 4cc729b312
2 changed files with 7 additions and 1 deletions

View file

@ -6581,6 +6581,11 @@ bool Plater::is_render_statistic_dialog_visible() const
return p->show_render_statistic_dialog;
}
Plater::TakeSnapshot::TakeSnapshot(Plater *plater, const std::string &snapshot_name)
: TakeSnapshot(plater, from_u8(snapshot_name)) {}
// Wrapper around wxWindow::PopupMenu to suppress error messages popping out while tracking the popup menu.
bool Plater::PopupMenu(wxMenu *menu, const wxPoint& pos)
{