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

@ -1,3 +1,7 @@
2006-07-23 Manfred Paulus <manfred.paulus@gmx.de>
* src/BaseDoc.py: fix angle calculation
* src/docgen/PSDrawDoc.py: fix angle calculation
2006-07-23 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py (GedcomParser.func_person_even): set
default type for an event to CUSTOM

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)

View File

@ -215,7 +215,8 @@ class PSDrawDoc(BaseDoc.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)