summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-15 10:12:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-15 10:12:19 +0200
commit0b255720a60f15ffe8006b37e367378b229e245f (patch)
treedd04131e2c2f5d4d773229d861dfca215399ecc3 /vcl/source/outdev
parent1bd2fe8943a0235b20c6d6fba09ec0cf8b268066 (diff)
Fix indentation
Change-Id: I687f7020284d86a880a0a5db31658f01edf8e850
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/map.cxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx
index 8255c2e77ff2..4f2863ece132 100644
--- a/vcl/source/outdev/map.cxx
+++ b/vcl/source/outdev/map.cxx
@@ -366,13 +366,13 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom,
#if (SAL_TYPES_SIZEOFLONG < 8)
if( (+n < nThres) && (-n < nThres) )
{
- n *= nMapNum * nDPI;
- if( nMapDenom != 1 )
- {
- n = (2 * n) / nMapDenom;
- if( n < 0 ) --n; else ++n;
- n /= 2;
- }
+ n *= nMapNum * nDPI;
+ if( nMapDenom != 1 )
+ {
+ n = (2 * n) / nMapDenom;
+ if( n < 0 ) --n; else ++n;
+ n /= 2;
+ }
}
else
#else
@@ -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
#endif
{
- sal_Int64 n64 = n;
- n64 *= nMapNum;
- n64 *= nDPI;
- if( nMapDenom == 1 )
- n = (long)n64;
- else
- {
- n = (long)(2 * n64 / nMapDenom);
- if( n < 0 ) --n; else ++n;
- n /= 2;
- }
+ sal_Int64 n64 = n;
+ n64 *= nMapNum;
+ n64 *= nDPI;
+ if( nMapDenom == 1 )
+ n = (long)n64;
+ else
+ {
+ n = (long)(2 * n64 / nMapDenom);
+ if( n < 0 ) --n; else ++n;
+ n /= 2;
+ }
}
return n;
}