diff options
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 96f989916117..31d782d1b80c 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -5939,8 +5939,6 @@ SvxIconChangeDialog::SvxIconChangeDialog( BitmapEx SvxIconSelectorDialog::AutoScaleBitmap(BitmapEx & aBitmap, const long aStandardSize) { Point aEmptyPoint(0,0); - sal_Int32 imgNewWidth = 0; - sal_Int32 imgNewHeight = 0; double imgposX = 0; double imgposY = 0; BitmapEx aRet = aBitmap; @@ -5950,6 +5948,9 @@ BitmapEx SvxIconSelectorDialog::AutoScaleBitmap(BitmapEx & aBitmap, const long a Size aScaledSize; if (imgOldWidth >= aStandardSize || imgOldHeight >= aStandardSize) { + sal_Int32 imgNewWidth = 0; + sal_Int32 imgNewHeight = 0; + if (imgOldWidth >= imgOldHeight) { imgNewWidth = aStandardSize; |