mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix several imgui UTF8 related issues (#11078)
* FIX:add tooltip(const std::string &label, float wrap_width) api jira: none Change-Id: I2372f57177a362f540e509747552a4a27f23fe8f (cherry picked from commit 9d690cddd60245cd3c16498e6c83183ec8446241) * Fix crash when rendering text icons --------- Co-authored-by: zhou.xu <zhou.xu@bambulab.com>
This commit is contained in:
@@ -1022,6 +1022,10 @@ void ImGuiWrapper::tooltip(const char *label, float wrap_width)
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
void ImGuiWrapper::tooltip(const std::string &label, float wrap_width) {
|
||||
tooltip(label.c_str(), wrap_width);
|
||||
}
|
||||
|
||||
void ImGuiWrapper::tooltip(const wxString &label, float wrap_width)
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
|
||||
Reference in New Issue
Block a user