diff options
Diffstat (limited to 'vcl/source/control/imgctrl.cxx')
-rw-r--r-- | vcl/source/control/imgctrl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/imgctrl.cxx b/vcl/source/control/imgctrl.cxx index 414824b29d82..5e7c95dab374 100644 --- a/vcl/source/control/imgctrl.cxx +++ b/vcl/source/control/imgctrl.cxx @@ -89,19 +89,19 @@ void ImageControl::ImplDraw(OutputDevice& rDev, const Point& rPos, const Size& r return; } - const Size& rBitmapSize = rImage.GetSizePixel(); + const Size aBitmapSize = rImage.GetSizePixel(); switch ( mnScaleMode ) { case ImageScaleMode::NONE: { - rDev.DrawImage(lcl_centerWithin( aDrawRect, rBitmapSize ), rImage, nStyle); + rDev.DrawImage(lcl_centerWithin( aDrawRect, aBitmapSize ), rImage, nStyle); } break; case ImageScaleMode::ISOTROPIC: { - const Size aPaintSize = lcl_calcPaintSize( aDrawRect, rBitmapSize ); + const Size aPaintSize = lcl_calcPaintSize( aDrawRect, aBitmapSize ); rDev.DrawImage(lcl_centerWithin(aDrawRect, aPaintSize), aPaintSize, rImage, nStyle); } break; |