2006-07-23 Manfred Paulus <manfred.paulus@gmx.de>

* src/BaseDoc.py: fix angle calculation
	* src/docgen/PSDrawDoc.py: fix angle calculation



svn: r7063
This commit is contained in:
Don Allingham
2006-07-23 23:16:21 +00:00
parent af068be9de
commit 4bb46152db
3 changed files with 8 additions and 2 deletions

View File

@@ -1498,7 +1498,8 @@ class BaseDoc:
angle = sangle
if short_radius == 0:
p.append((centerx, centery))
if (end_angle - start_angle) != 360:
p.append((centerx, centery))
else:
origx = (centerx + cos(angle) * short_radius)
origy = (centery + sin(angle) * short_radius)