summaryrefslogtreecommitdiff
path: root/basegfx/source/tools/unotools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/tools/unotools.cxx')
-rw-r--r--basegfx/source/tools/unotools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/tools/unotools.cxx b/basegfx/source/tools/unotools.cxx
index 8fe38a743bb8..b1666c3d149a 100644
--- a/basegfx/source/tools/unotools.cxx
+++ b/basegfx/source/tools/unotools.cxx
@@ -171,7 +171,7 @@ namespace unotools
const bool bClosed(rPoly.isClosed());
// calculate input vertex count
- const sal_uInt32 nLoopCount(bClosed ? nCount : (nCount ? nCount - 1L : 0 ));
+ const sal_uInt32 nLoopCount(bClosed ? nCount : (nCount ? nCount - 1 : 0 ));
std::vector<awt::Point> aPoints; aPoints.reserve(nLoopCount);
std::vector<drawing::PolygonFlags> aFlags; aFlags.reserve(nLoopCount);
@@ -237,7 +237,7 @@ namespace unotools
else
{
// add last point as closing point
- const basegfx::B2DPoint aClosingPoint(rPoly.getB2DPoint(nCount - 1L));
+ const basegfx::B2DPoint aClosingPoint(rPoly.getB2DPoint(nCount - 1));
const awt::Point aEnd(fround(aClosingPoint.getX()),
fround(aClosingPoint.getY()));
aPoints.push_back(aEnd);