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

@ -383,10 +383,11 @@ public:
Plater *m_plater;
};
// ROII wrapper for taking an Undo / Redo snapshot while disabling the snapshot taking by the methods called from inside this snapshot.
// RAII wrapper for taking an Undo / Redo snapshot while disabling the snapshot taking by the methods called from inside this snapshot.
class TakeSnapshot
{
public:
TakeSnapshot(Plater *plater, const std::string &snapshot_name);
TakeSnapshot(Plater *plater, const wxString &snapshot_name) : m_plater(plater)
{
m_plater->take_snapshot(snapshot_name);