Index: source/view/main/Clipping.cxx =================================================================== RCS file: /cvs/graphics/chart2/source/view/main/Clipping.cxx,v retrieving revision 1.6.82.1 diff -u -r1.6.82.1 Clipping.cxx --- source/view/main/Clipping.cxx 10 Jan 2008 17:14:29 -0000 1.6.82.1 +++ source/view/main/Clipping.cxx 30 Apr 2008 15:09:36 -0000 @@ -192,6 +192,12 @@ sal_Int32 nNewResultPointCount = rResultPointCount[nPolygonIndex]+1; sal_Int32 nSeqLength = pOuterSequenceX->getLength(); + if(nNewResultPointCount<0) + { + OSL_ENSURE( false, "The point count needs to be > 0"); + return; + } + if( nSeqLength <= nNewResultPointCount ) { sal_Int32 nReallocLength = nReservePointCount;