From e67cea929c62609526b65d36945b8dc4abf48be3 Mon Sep 17 00:00:00 2001 From: "Chr. Rossmanith" Date: Sun, 30 Dec 2012 09:26:17 +0100 Subject: Revert "SVG: add check if polygon is closed" This reverts commit 0144c952282a4555b7ab0cfcf9d35bf753e5d8cb. --- basegfx/source/polygon/b2dsvgpolypolygon.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'basegfx/source/polygon/b2dsvgpolypolygon.cxx') diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx index bb0b63a7cfc0..b73154308082 100644 --- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx +++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx @@ -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) { -- cgit v1.2.1