diff options
author | Armin Weiss <aw@openoffice.org> | 2003-11-10 10:45:52 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2003-11-10 10:45:52 +0000 |
commit | ff3c6dbe35436fa508356a45b7367d4055cd6387 (patch) | |
tree | 5325d2cd5ce67961f59260d70784e083c67bdad7 /basegfx/source/polygon/b2dpolygon.cxx | |
parent | e7fb8a71b60f4c6e94b4cafbe9d0badf427316e3 (diff) |
Some error corrections, some additions to polygon stuff, making PolyPolygonCutter work
Diffstat (limited to 'basegfx/source/polygon/b2dpolygon.cxx')
-rw-r--r-- | basegfx/source/polygon/b2dpolygon.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx index e5bcd66a2e04..09d4429aa181 100644 --- a/basegfx/source/polygon/b2dpolygon.cxx +++ b/basegfx/source/polygon/b2dpolygon.cxx @@ -2,9 +2,9 @@ * * $RCSfile: b2dpolygon.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: aw $ $Date: 2003-11-06 16:30:29 $ + * last change: $Author: aw $ $Date: 2003-11-10 11:45:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -118,6 +118,10 @@ public: { } + ~CoordinateDataArray2D() + { + } + sal_uInt32 count() const { return maVector.size(); @@ -182,7 +186,7 @@ public: { const sal_uInt32 nHalfSize(maVector.size() >> 1L); CoordinateData2DVector::iterator aStart(maVector.begin()); - CoordinateData2DVector::iterator aEnd(maVector.end()); + CoordinateData2DVector::iterator aEnd(maVector.end() - 1L); for(sal_uInt32 a(0); a < nHalfSize; a++) { @@ -290,6 +294,10 @@ public: } } + ~ControlVectorArray2D() + { + } + sal_uInt32 count() const { return maVector.size(); @@ -1137,7 +1145,7 @@ namespace basegfx void B2DPolygon::remove(sal_uInt32 nIndex, sal_uInt32 nCount) { - DBG_ASSERT(nIndex + nCount > mpPolygon->count(), "B2DPolygon Remove outside range (!)"); + DBG_ASSERT(nIndex + nCount <= mpPolygon->count(), "B2DPolygon Remove outside range (!)"); if(nCount) { |