Kaydet (Commit) c832da45 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: can reduce the scope of these variables

üst 488f0db2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment