Skip to content

Commit

Permalink
Fix for #8459 - Tooltip on "Retract amount before wipe" setting for r…
Browse files Browse the repository at this point in the history
…etractions
  • Loading branch information
YuSanka authored and lukasmatena committed Jul 12, 2022
1 parent 7860cf8 commit 1afc6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/OG_CustomCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1afc6fb

Please sign in to comment.