From cb4e6b7d30b1b1c24552bcc35a90fdbc6a62a561 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 5 Jan 2012 10:22:06 -0200 Subject: [PATCH] used precision value from preferences in Draft SVG import --- src/Mod/Draft/importSVG.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/importSVG.py b/src/Mod/Draft/importSVG.py index 429d6fdf3..0590d7701 100644 --- a/src/Mod/Draft/importSVG.py +++ b/src/Mod/Draft/importSVG.py @@ -569,8 +569,8 @@ class svgHandler(xml.sax.ContentHandler): pole1v = lastvec.add(pole1) pole2v = currentvec.add(pole2) print "curve data:",mainv.normalize(),pole1v.normalize(),pole2v.normalize() - if (round(mainv.getAngle(pole1v),4) in [0,round(math.pi,4)]) \ - and (round(mainv.getAngle(pole2v),4) in [0,round(math.pi,4)]): + if (round(mainv.getAngle(pole1v),Draft.precision()) in [0,round(math.pi,Draft.precision())]) \ + and (round(mainv.getAngle(pole2v),Draft.precision()) in [0,round(math.pi,Draft.precision())]): print "straight segment" seg = Part.Line(lastvec,currentvec).toShape() else: