summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b2dpolypolygoncutter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/polygon/b2dpolypolygoncutter.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolypolygoncutter.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx
index 88cafdedcd39..f2cbf2123c92 100644
--- a/basegfx/source/polygon/b2dpolypolygoncutter.cxx
+++ b/basegfx/source/polygon/b2dpolypolygoncutter.cxx
@@ -1047,16 +1047,17 @@ namespace basegfx
const B2DRange aCandidateRange(aCandidate.getB2DRange());
bool bCouldMergeSimple(false);
- for(sal_uInt32 b(0); !bCouldMergeSimple && b < aResult.size(); b++)
+ for(auto & b: aResult)
{
- basegfx::B2DPolyPolygon aTarget(aResult[b]);
+ basegfx::B2DPolyPolygon aTarget(b);
const B2DRange aTargetRange(aTarget.getB2DRange());
if(!aCandidateRange.overlaps(aTargetRange))
{
aTarget.append(aCandidate);
- aResult[b] = aTarget;
+ b = aTarget;
bCouldMergeSimple = true;
+ break;
}
}