mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-06 15:21:09 +00:00
fix position of + sign on printer selector
This commit is contained in:
@@ -164,7 +164,7 @@ void SideToolsPanel::doRender(wxDC &dc)
|
||||
|
||||
wxString no_printer_str = _L("No printer");
|
||||
auto sizet = dc.GetTextExtent(no_printer_str);
|
||||
auto left_add_bitmap = size.x - FromDIP(30) - m_wifi_none_img.GetBmpSize().x - m_none_add_img.GetBmpSize().x;
|
||||
auto left_add_bitmap = size.x - FromDIP(30) /* - m_wifi_none_img.GetBmpSize().x */ - m_none_add_img.GetBmpSize().x;
|
||||
auto size_width = left_add_bitmap - left;
|
||||
|
||||
if (sizet.x > size_width) {
|
||||
@@ -183,7 +183,7 @@ void SideToolsPanel::doRender(wxDC &dc)
|
||||
|
||||
dc.DrawText(no_printer_str, wxPoint(left, (size.y - sizet.y) / 2));
|
||||
|
||||
left = size.x - FromDIP(30) - m_wifi_none_img.GetBmpSize().x;
|
||||
left = size.x - FromDIP(30) /* - m_wifi_none_img.GetBmpSize().x */ ;
|
||||
dc.DrawBitmap(m_none_add_img.bmp(), left, (size.y - m_none_add_img.GetBmpSize().y) / 2);
|
||||
} else {
|
||||
dc.DrawBitmap(m_printing_img.bmp(), left, (size.y - m_printing_img.GetBmpSize().y) / 2);
|
||||
|
||||
Reference in New Issue
Block a user