From a0f877f415e0eb3808a0d0b344d0743d115ef943 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 4 Jun 2011 13:59:29 +0000 Subject: [PATCH] 4964: Gramps crashed during web report generation with person place maps svn: r17686 --- src/plugins/webreport/NarrativeWeb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 3c954ead3..d7bf1791a 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -4039,12 +4039,12 @@ class IndividualPage(BasePage): YCoordinates.append(long) XCoordinates.sort() - minX = XCoordinates[0] if XCoordinates[0] is not None - maxX = XCoordinates[-1] if XCoordinates[-1] is not None + minX = XCoordinates[0] if XCoordinates[0] is not None else minX + maxX = XCoordinates[-1] if XCoordinates[-1] is not None else maxX YCoordinates.sort() - minY = YCoordinates[0] if YCoordinates[0] is not None - maxY = YCoordinates[-1] if YCoordinates[-1] is not None + minY = YCoordinates[0] if YCoordinates[0] is not None else minY + maxY = YCoordinates[-1] if YCoordinates[-1] is not None else maxY try: spanY = int( Decimal( maxY ) - Decimal( minY ) )