mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 15:33:16 +08:00
FIX: correct the encoding
jira: [STUDIO-11876] Change-Id: I9824214e5114ab73ed850fb882be9f0980a5b270
This commit is contained in:
parent
cf3ae1bd1a
commit
ea56ebfc6c
@ -199,7 +199,7 @@ void SideToolsPanel::doRender(wxDC &dc)
|
||||
auto sizet = dc.GetTextExtent(m_dev_name);
|
||||
auto text_end = size.x - m_wifi_none_img.GetBmpSize().x - 20;
|
||||
|
||||
std::string finally_name = m_dev_name.ToStdString();
|
||||
wxString finally_name = m_dev_name;
|
||||
if (sizet.x > (text_end - left)) {
|
||||
auto limit_width = text_end - left - dc.GetTextExtent("...").x - 20;
|
||||
for (auto i = 0; i < m_dev_name.length(); i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user