Kaydet (Commit) 0b255720 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix indentation

Change-Id: I687f7020284d86a880a0a5db31658f01edf8e850
üst 1bd2fe89
...@@ -366,13 +366,13 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom, ...@@ -366,13 +366,13 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom,
#if (SAL_TYPES_SIZEOFLONG < 8) #if (SAL_TYPES_SIZEOFLONG < 8)
if( (+n < nThres) && (-n < nThres) ) if( (+n < nThres) && (-n < nThres) )
{ {
n *= nMapNum * nDPI; n *= nMapNum * nDPI;
if( nMapDenom != 1 ) if( nMapDenom != 1 )
{ {
n = (2 * n) / nMapDenom; n = (2 * n) / nMapDenom;
if( n < 0 ) --n; else ++n; if( n < 0 ) --n; else ++n;
n /= 2; n /= 2;
} }
} }
else else
#else #else
...@@ -381,17 +381,17 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom, ...@@ -381,17 +381,17 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom,
assert(nMapNum == 0 || std::abs(n) < std::numeric_limits<long>::max() / nMapNum / nDPI); //detect overflows assert(nMapNum == 0 || std::abs(n) < std::numeric_limits<long>::max() / nMapNum / nDPI); //detect overflows
#endif #endif
{ {
sal_Int64 n64 = n; sal_Int64 n64 = n;
n64 *= nMapNum; n64 *= nMapNum;
n64 *= nDPI; n64 *= nDPI;
if( nMapDenom == 1 ) if( nMapDenom == 1 )
n = (long)n64; n = (long)n64;
else else
{ {
n = (long)(2 * n64 / nMapDenom); n = (long)(2 * n64 / nMapDenom);
if( n < 0 ) --n; else ++n; if( n < 0 ) --n; else ++n;
n /= 2; n /= 2;
} }
} }
return n; return n;
} }
......
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