summaryrefslogtreecommitdiffstats
path: root/basegfx/source/polygon/b2dpolygontools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/polygon/b2dpolygontools.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx18
1 files changed, 5 insertions, 13 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index 8457ff3044b9..db3365eee313 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -3204,8 +3204,7 @@ namespace basegfx
// converters for css::drawing::PointSequence
B2DPolygon UnoPointSequenceToB2DPolygon(
- const css::drawing::PointSequence& rPointSequenceSource,
- bool bCheckClosed)
+ const css::drawing::PointSequence& rPointSequenceSource)
{
B2DPolygon aRetval;
const sal_uInt32 nLength(rPointSequenceSource.getLength());
@@ -3221,11 +3220,8 @@ namespace basegfx
aRetval.append(B2DPoint(pArray->X, pArray->Y));
}
- if(bCheckClosed)
- {
- // check for closed state flag
- utils::checkClosed(aRetval);
- }
+ // check for closed state flag
+ utils::checkClosed(aRetval);
}
return aRetval;
@@ -3281,8 +3277,7 @@ namespace basegfx
B2DPolygon UnoPolygonBezierCoordsToB2DPolygon(
const css::drawing::PointSequence& rPointSequenceSource,
- const css::drawing::FlagSequence& rFlagSequenceSource,
- bool bCheckClosed)
+ const css::drawing::FlagSequence& rFlagSequenceSource)
{
const sal_uInt32 nCount(static_cast<sal_uInt32>(rPointSequenceSource.getLength()));
OSL_ENSURE(nCount == static_cast<sal_uInt32>(rFlagSequenceSource.getLength()),
@@ -3373,10 +3368,7 @@ namespace basegfx
// #i72807# API import uses old line start/end-equal definition for closed,
// so we need to correct this to closed state here
- if(bCheckClosed)
- {
- checkClosed(aRetval);
- }
+ checkClosed(aRetval);
return aRetval;
}