summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-22 19:38:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-23 15:47:31 +0200
commit80e81048626cefeceab243135a1241e7dac32db1 (patch)
tree7d6f46360605d656b96f2ef0ab75ec2ef40fc31d
parentd64d62f15eb98033273a90af3dc83b57b7b25359 (diff)
set point values via ctor
Change-Id: Icb17ea1b82128669d4f35492fba70c7d89f9fdca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101191 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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;
}
}