mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: the encoding problem
jira: [STUDIO-12222] Change-Id: Ia42865d148b1b89207336af3e2713a64c90b656d (cherry picked from commit afd1766c89e5309da3304b9999234bdfb8cf811b)
This commit is contained in:
@@ -205,7 +205,7 @@ void SideToolsPanel::doRender(wxDC &dc)
|
|||||||
for (auto i = 0; i < m_dev_name.length(); i++) {
|
for (auto i = 0; i < m_dev_name.length(); i++) {
|
||||||
auto curr_width = dc.GetTextExtent(m_dev_name.substr(0, i));
|
auto curr_width = dc.GetTextExtent(m_dev_name.substr(0, i));
|
||||||
if (curr_width.x >= limit_width) {
|
if (curr_width.x >= limit_width) {
|
||||||
finally_name = (m_dev_name.substr(0, i) + wxString("...")).ToStdString();
|
finally_name = m_dev_name.substr(0, i) + "...";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user