SLA dialog: Prevented the slider to have zero width, even in case the text width is calculated incorrectly

This commit is contained in:
Lukas Matena 2019-05-24 12:01:26 +02:00
parent 61730aee27
commit 66a56941a5
3 changed files with 52 additions and 32 deletions

View file

@ -225,10 +225,10 @@ ImVec2 ImGuiWrapper::calc_text_size(const wxString &text)
auto text_utf8 = into_u8(text);
ImVec2 size = ImGui::CalcTextSize(text_utf8.c_str());
#ifndef __APPLE__
/*#ifdef __linux__
size.x *= m_style_scaling;
size.y *= m_style_scaling;
#endif
#endif*/
return size;
}