From 1afc6fb57caa481a76d35dfe8001751ecb7b72f7 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 7 Jul 2022 15:03:20 +0200 Subject: [PATCH] Fix for #8459 - Tooltip on "Retract amount before wipe" setting for retractions --- src/slic3r/GUI/OG_CustomCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/OG_CustomCtrl.cpp b/src/slic3r/GUI/OG_CustomCtrl.cpp index 83537fd54..f67f6b430 100644 --- a/src/slic3r/GUI/OG_CustomCtrl.cpp +++ b/src/slic3r/GUI/OG_CustomCtrl.cpp @@ -687,7 +687,7 @@ wxCoord OG_CustomCtrl::CtrlLine::draw_text(wxDC& dc, wxPoint pos, const wxStr dc.GetMultiLineTextExtent(out_text, &text_width, &text_height); pos.y = pos.y + lround((height - text_height) / 2); - if (width > 0) + if (rect_label.GetWidth() == 0) rect_label = wxRect(pos, wxSize(text_width, text_height)); wxColour old_clr = dc.GetTextForeground();