Revert "SVG: add check if polygon is closed"

This reverts commit 0144c95228.
This commit is contained in:
Chr. Rossmanith
2012-12-30 09:26:17 +01:00
parent 8b1c57d474
commit e67cea929c

View File

@@ -767,10 +767,6 @@ namespace basegfx
if(aCurrPoly.count())
{
const B2DPoint aFirstPoint(aCurrPoly.getB2DPoint(0));
const B2DPoint aLastPoint(aCurrPoly.getB2DPoint(aCurrPoly.count()-1));
if ( (aFirstPoint.getX()-aLastPoint.getX())*(aFirstPoint.getX()-aLastPoint.getX()) +
(aFirstPoint.getY()-aLastPoint.getY())*(aFirstPoint.getY()-aLastPoint.getY()) < 1 ) bIsClosed = true;
// end-process last poly
if(bIsClosed)
{