Fix for #8459 - Tooltip on "Retract amount before wipe" setting for retractions
This commit is contained in:
parent
7860cf8811
commit
1afc6fb57c
1 changed files with 1 additions and 1 deletions
|
@ -687,7 +687,7 @@ wxCoord OG_CustomCtrl::CtrlLine::draw_text(wxDC& dc, wxPoint pos, const wxStr
|
||||||
dc.GetMultiLineTextExtent(out_text, &text_width, &text_height);
|
dc.GetMultiLineTextExtent(out_text, &text_width, &text_height);
|
||||||
|
|
||||||
pos.y = pos.y + lround((height - text_height) / 2);
|
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));
|
rect_label = wxRect(pos, wxSize(text_width, text_height));
|
||||||
|
|
||||||
wxColour old_clr = dc.GetTextForeground();
|
wxColour old_clr = dc.GetTextForeground();
|
||||||
|
|
Loading…
Reference in a new issue