FIX: the encoding problem

jira: [STUDIO-12222]
Change-Id: Ia42865d148b1b89207336af3e2713a64c90b656d
(cherry picked from commit afd1766c89e5309da3304b9999234bdfb8cf811b)
This commit is contained in:
xin.zhang
2025-05-16 16:23:57 +08:00
committed by Noisyfox
parent 5de5db5b99
commit 15c95a1090

View File

@@ -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;
}
}