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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Matena <lukasmatena@seznam.cz>2020-02-21 13:58:18 +0300
committerLukas Matena <lukasmatena@seznam.cz>2020-02-21 14:53:51 +0300
commit91cabe5832467cf546c4f000ceda9cc2c287a89e (patch)
treec29d4690776d1a9ab685a2ed7d148b54abd813e5 /src/slic3r/GUI/Tab.cpp
parenta877147afd5a400310b526d50f2ec867aa6579ee (diff)
Fixed few more encoding issues
All uncovered after disabling unsafe wxString conversions
Diffstat (limited to 'src/slic3r/GUI/Tab.cpp')
-rw-r--r--src/slic3r/GUI/Tab.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp
index 541be423d..ed3a93007 100644
--- a/src/slic3r/GUI/Tab.cpp
+++ b/src/slic3r/GUI/Tab.cpp
@@ -49,14 +49,14 @@ Tab::Tab(wxNotebook* parent, const wxString& title, Preset::Type type) :
m_compatible_printers.type = Preset::TYPE_PRINTER;
m_compatible_printers.key_list = "compatible_printers";
m_compatible_printers.key_condition = "compatible_printers_condition";
- m_compatible_printers.dialog_title = _(L("Compatible printers"));
- m_compatible_printers.dialog_label = _(L("Select the printers this profile is compatible with."));
+ m_compatible_printers.dialog_title = _(L("Compatible printers")).ToUTF8();
+ m_compatible_printers.dialog_label = _(L("Select the printers this profile is compatible with.")).ToUTF8();
m_compatible_prints.type = Preset::TYPE_PRINT;
m_compatible_prints.key_list = "compatible_prints";
m_compatible_prints.key_condition = "compatible_prints_condition";
- m_compatible_prints.dialog_title = _(L("Compatible print profiles"));
- m_compatible_prints.dialog_label = _(L("Select the print profiles this profile is compatible with."));
+ m_compatible_prints.dialog_title = _(L("Compatible print profiles")).ToUTF8();
+ m_compatible_prints.dialog_label = _(L("Select the print profiles this profile is compatible with.")).ToUTF8();
wxGetApp().tabs_list.push_back(this);
@@ -3032,7 +3032,7 @@ void Tab::save_preset(std::string name /*= ""*/)
const Preset &preset = m_presets->get_selected_preset();
auto default_name = preset.is_default ? "Untitled" :
// preset.is_system ? (boost::format(_utf8(L("%1% - Copy"))) % preset.name).str() :
- preset.is_system ? (boost::format(_CTX_utf8(L_CONTEXT("%1% - Copy", "PresetName"), "PresetName")) % preset.name).str() :
+ preset.is_system ? (boost::format(_CTX_utf8(L_CONTEXT("%1% - Copy", "PresetName"), "PresetName").ToUTF8()) % preset.name).str() :
preset.name;
bool have_extention = boost::iends_with(default_name, ".ini");