Couple of fixes in Draft DXF importer

+ fixed default draft point color
+ fixed bug in polylines with bulge = almost zero
+ fixed bug in text attributes display
This commit is contained in:
Yorik van Havre
2012-02-19 17:31:28 -02:00
parent 388eded3dd
commit 68dcabcffc
3 changed files with 46 additions and 28 deletions

View File

@@ -161,9 +161,10 @@ def isColinear(vlist):
'''isColinear(list_of_vectors): checks if vectors in given list are colinear'''
typecheck ([(vlist,list)], "isColinear");
if len(vlist) < 3: return True
p = precision()
first = vlist[1].sub(vlist[0])
for i in range(2,len(vlist)):
if angle(vlist[i].sub(vlist[0]),first) != 0:
if round(angle(vlist[i].sub(vlist[0]),first),p) != 0:
return False
return True