4964: Gramps crashed during web report generation with person place maps
svn: r17686
This commit is contained in:
parent
59b324df39
commit
a0f877f415
@ -4039,12 +4039,12 @@ class IndividualPage(BasePage):
|
|||||||
YCoordinates.append(long)
|
YCoordinates.append(long)
|
||||||
|
|
||||||
XCoordinates.sort()
|
XCoordinates.sort()
|
||||||
minX = XCoordinates[0] if XCoordinates[0] is not None
|
minX = XCoordinates[0] if XCoordinates[0] is not None else minX
|
||||||
maxX = XCoordinates[-1] if XCoordinates[-1] is not None
|
maxX = XCoordinates[-1] if XCoordinates[-1] is not None else maxX
|
||||||
|
|
||||||
YCoordinates.sort()
|
YCoordinates.sort()
|
||||||
minY = YCoordinates[0] if YCoordinates[0] is not None
|
minY = YCoordinates[0] if YCoordinates[0] is not None else minY
|
||||||
maxY = YCoordinates[-1] if YCoordinates[-1] is not None
|
maxY = YCoordinates[-1] if YCoordinates[-1] is not None else maxY
|
||||||
|
|
||||||
try:
|
try:
|
||||||
spanY = int( Decimal( maxY ) - Decimal( minY ) )
|
spanY = int( Decimal( maxY ) - Decimal( minY ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user