mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 14:33:12 +08:00
FIX: the encoding problem
jira: [STUDIO-12222] Change-Id: Ia42865d148b1b89207336af3e2713a64c90b656d
This commit is contained in:
parent
fc6b447b4a
commit
afd1766c89
@ -205,7 +205,7 @@ void SideToolsPanel::doRender(wxDC &dc)
|
||||
for (auto i = 0; i < m_dev_name.length(); i++) {
|
||||
auto curr_width = dc.GetTextExtent(m_dev_name.substr(0, i));
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user