diff options
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r-- | vcl/source/control/button.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 210d2b6290e0..24a8295ed824 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -242,7 +242,7 @@ void Button::ImplDrawAlignedImage(OutputDevice* pDev, Point& rPos, // If the button text doesn't fit into it, put it into a tooltip (might happen in sidebar) if (GetQuickHelpText()!= aText && mpButtonData->mbGeneratedTooltip) SetQuickHelpText(""); - if (GetQuickHelpText().isEmpty() && textRect.getWidth() > rSize.getWidth()) + if (GetQuickHelpText().isEmpty() && textRect.getOpenWidth() > rSize.getWidth()) { SetQuickHelpText(aText); mpButtonData->mbGeneratedTooltip = true; |