diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 22:17:57 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 22:17:57 +0000 |
commit | e0bc4a1531b575d4a2e94a405e541b644b872154 (patch) | |
tree | 6d59145a82898b8163a3b3c85c0f3feef81cedb4 /svx/source/svdraw/polypolygoneditor.cxx | |
parent | 4f7dff79b3083b2a882ecf6f517e2e2f5ed19540 (diff) |
INTEGRATION: CWS aw033 (1.3.44); FILE MERGED
2008/05/14 14:03:34 aw 1.3.44.2: RESYNC: (1.3-1.4); FILE MERGED
2007/12/17 10:22:20 aw 1.3.44.1: #i39532# minor primitive corrections
Diffstat (limited to 'svx/source/svdraw/polypolygoneditor.cxx')
-rw-r--r-- | svx/source/svdraw/polypolygoneditor.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/svdraw/polypolygoneditor.cxx b/svx/source/svdraw/polypolygoneditor.cxx index 8f953b6b6693..af8b1da7a467 100644 --- a/svx/source/svdraw/polypolygoneditor.cxx +++ b/svx/source/svdraw/polypolygoneditor.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: polypolygoneditor.cxx,v $ - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -91,8 +91,9 @@ bool PolyPolygonEditor::SetSegmentsKind(SdrPathSegmentKind eKind, const std::set bool bCandidateChanged(false); const sal_uInt32 nCount(aCandidate.count()); - if(nCount && (nPntNum < nCount || aCandidate.isClosed())) + if(nCount && (nPntNum + 1 < nCount || aCandidate.isClosed())) { + // it's a valid edge, check control point usage const sal_uInt32 nNextIndex((nPntNum + 1) % nCount); const bool bContolUsed(aCandidate.areControlPointsUsed() && (aCandidate.isNextControlPointUsed(nPntNum) || aCandidate.isPrevControlPointUsed(nNextIndex))); |