4964: Gramps crashed during web report generation with person place maps
svn: r17687
This commit is contained in:
parent
17e7d64524
commit
8f71da793c
@ -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…
Reference in New Issue
Block a user