From 10b33d91fa2d16768caef7bdd4b02144045819b1 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 21 Nov 2011 09:41:10 +0000 Subject: [PATCH] + fix SVG generation of ellipse git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5151 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Drawing/App/DrawingExport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Drawing/App/DrawingExport.cpp b/src/Mod/Drawing/App/DrawingExport.cpp index 91919e825b..09f110b7e6 100644 --- a/src/Mod/Drawing/App/DrawingExport.cpp +++ b/src/Mod/Drawing/App/DrawingExport.cpp @@ -126,7 +126,7 @@ void SVGOutput::printCircle(const BRepAdaptor_Curve& c, std::ostream& out) double a = v3.DotCross(v1,v2); // a full circle - if (s.SquareDistance(e) < 0.001) { + if (fabs(l-f) > 1.0 && s.SquareDistance(e) < 0.001) { out << ""; } @@ -161,7 +161,7 @@ void SVGOutput::printEllipse(const BRepAdaptor_Curve& c, int id, std::ostream& o double a = v3.DotCross(v1,v2); // a full ellipse - if (s.SquareDistance(e) < 0.001) { + if (fabs(l-f) > 1.0 && s.SquareDistance(e) < 0.001) { out << ""; }