diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index eae8beb73..33c1b1830 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-04-06 Martin Hawlisch + * src/PedView.py: Truncate place names because they tend to be loooong. + 2005-04-06 Richard Taylor * src/DdTargets.py: added PERSON_LINK_LIST target. * src/FamilyView.py: corrected bug when person is droped if there is no current diff --git a/gramps2/src/PedView.py b/gramps2/src/PedView.py index e750b80a2..08cf99d1b 100644 --- a/gramps2/src/PedView.py +++ b/gramps2/src/PedView.py @@ -770,7 +770,10 @@ def build_detail_string(db,person): if place_handle: place_title = db.get_place_from_handle(place_handle).get_title() if place_title != "": - ep = place_title + if len(place_title) > 15: + ep = place_title[:14]+"..." + else: + ep = place_title if ep: return u"\n%s %s, %s" % (label,ed,ep) return u"\n%s %s" % (label,ed)