summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/map.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/outdev/map.cxx')
-rw-r--r--vcl/source/outdev/map.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx
index 2430daec4f56..e6f7d485979b 100644
--- a/vcl/source/outdev/map.cxx
+++ b/vcl/source/outdev/map.cxx
@@ -543,13 +543,12 @@ tools::Polygon OutputDevice::ImplLogicToDevicePixel( const tools::Polygon& rLogi
for ( i = 0; i < nPoints; i++ )
{
const Point& rPt = pPointAry[i];
- Point aPt;
- aPt.setX( ImplLogicToPixel( rPt.X()+maMapRes.mnMapOfsX, mnDPIX,
+ Point aPt(ImplLogicToPixel( rPt.X()+maMapRes.mnMapOfsX, mnDPIX,
maMapRes.mnMapScNumX, maMapRes.mnMapScDenomX,
- maThresRes.mnThresLogToPixX )+mnOutOffX+mnOutOffOrigX );
- aPt.setY( ImplLogicToPixel( rPt.Y()+maMapRes.mnMapOfsY, mnDPIY,
+ maThresRes.mnThresLogToPixX )+mnOutOffX+mnOutOffOrigX,
+ ImplLogicToPixel( rPt.Y()+maMapRes.mnMapOfsY, mnDPIY,
maMapRes.mnMapScNumY, maMapRes.mnMapScDenomY,
- maThresRes.mnThresLogToPixY )+mnOutOffY+mnOutOffOrigY );
+ maThresRes.mnThresLogToPixY )+mnOutOffY+mnOutOffOrigY);
aPoly[i] = aPt;
}
}