Fix issue that "Per-glyph" option not working when UI is in Chinese (#3425)

(cherry picked from commit 712478c240f82ecb6c58997088daf3cfd454bb87)
This commit is contained in:
Noisyfox 2024-01-02 16:01:05 +08:00 committed by SoftFever
parent cc593f99f8
commit b624aa0580

View File

@ -2484,7 +2484,7 @@ bool GLGizmoEmboss::rev_checkbox(const std::string &name,
// draw offseted input
auto draw_offseted_input = [this, &offset = m_gui_cfg->advanced_input_offset, &name, &value](){
ImGui::SameLine(offset);
return m_imgui->bbl_checkbox(("##" + name).c_str(), value);
return m_imgui->bbl_checkbox(wxString::FromUTF8("##" + name), value);
};
float undo_offset = ImGui::GetStyle().WindowPadding.x;
return revertible(name, value, default_value, undo_tooltip,