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

This commit is contained in:
Noisyfox 2024-01-02 16:01:05 +08:00 committed by GitHub
parent 9e443baf95
commit 712478c240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,