From 7b69b201a9b7adbf7d55753a082bd724744d2a0f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 23 Jul 2006 23:16:21 +0000 Subject: [PATCH] 2006-07-23 Manfred Paulus * src/BaseDoc.py: fix angle calculation * src/docgen/PSDrawDoc.py: fix angle calculation svn: r7063 --- gramps2/ChangeLog | 4 ++++ gramps2/src/BaseDoc.py | 3 ++- gramps2/src/docgen/PSDrawDoc.py | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index abec1494d..0bcda67b4 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-07-23 Manfred Paulus + * src/BaseDoc.py: fix angle calculation + * src/docgen/PSDrawDoc.py: fix angle calculation + 2006-07-23 Don Allingham * src/GrampsDb/_ReadGedcom.py (GedcomParser.func_person_even): set default type for an event to CUSTOM diff --git a/gramps2/src/BaseDoc.py b/gramps2/src/BaseDoc.py index dec3141bd..1e65f1b65 100644 --- a/gramps2/src/BaseDoc.py +++ b/gramps2/src/BaseDoc.py @@ -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) diff --git a/gramps2/src/docgen/PSDrawDoc.py b/gramps2/src/docgen/PSDrawDoc.py index 63af657ea..3316fbe14 100644 --- a/gramps2/src/docgen/PSDrawDoc.py +++ b/gramps2/src/docgen/PSDrawDoc.py @@ -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)