diff options
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r-- | vcl/source/control/button.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index bc173254efbf..f96f8c0a57c4 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -236,11 +236,9 @@ void Button::ImplDrawAlignedImage(OutputDevice* pDev, Point& rPos, Size aTextSize; Size aSymbolSize; Size aDeviceTextSize; - Size aMax; Point aImagePos = rPos; Point aTextPos = rPos; tools::Rectangle aUnion(aImagePos, aImageSize); - tools::Rectangle aSymbol; long nSymbolHeight = 0; if (bDrawText || bHasSymbol) @@ -253,6 +251,7 @@ void Button::ImplDrawAlignedImage(OutputDevice* pDev, Point& rPos, if (bHasSymbol) { + tools::Rectangle aSymbol; if (bDrawText) { nSymbolHeight = pDev->GetTextHeight(); @@ -311,6 +310,7 @@ void Button::ImplDrawAlignedImage(OutputDevice* pDev, Point& rPos, } } + Size aMax; aMax.setWidth( std::max(aTSSize.Width(), aImageSize.Width()) ); aMax.setHeight( std::max(aTSSize.Height(), aImageSize.Height()) ); |