summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2012-12-30 09:26:17 +0100
committerChr. Rossmanith <ChrRossmanith@gmx.de>2012-12-30 09:26:17 +0100
commite67cea929c62609526b65d36945b8dc4abf48be3 (patch)
tree489ade15c618951831a4badb7fec22633a08a46d /basegfx/source/polygon
parent8b1c57d474db0dec61e6e6445f883f93143c9ad7 (diff)
Revert "SVG: add check if polygon is closed"
Diffstat (limited to 'basegfx/source/polygon')
-rw-r--r--basegfx/source/polygon/b2dsvgpolypolygon.cxx4
1 files changed, 0 insertions, 4 deletions
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)
{