diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/button.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index d4ba23064e03..a737b61abfa6 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -2844,8 +2844,15 @@ Size RadioButton::CalcMinimumSize() const else { aSize = maImage.GetSizePixel(); - aSize.AdjustWidth(8 ); - aSize.AdjustHeight(8 ); + aSize.AdjustWidth(8); + aSize.AdjustHeight(8); + } + + if (Button::HasImage() && !(ImplGetButtonState() & DrawButtonFlags::NoImage)) + { + Size aImgSize = GetModeImage().GetSizePixel(); + aSize = Size(std::max(aImgSize.Width(), aSize.Width()), + std::max(aImgSize.Height(), aSize.Height())); } OUString aText = GetText(); |