fix map view startup traceback
svn: r6135
This commit is contained in:
parent
5fedb3ad84
commit
f2f376765b
@ -1,3 +1,6 @@
|
||||
2006-03-10 Don Allingham <don@gramps-project.org>
|
||||
* src/DataViews/_MapView.py: try to avoid startup traceback
|
||||
|
||||
2006-03-10 Alex Roitman <shura@gramps-project.org>
|
||||
* src/Plugins.py, src/PluginMgr.py: Move to ReportUtils.
|
||||
* various: use ReportUtils instead of PluginMgr.
|
||||
|
@ -227,6 +227,7 @@ class ZoomMap( gtk.DrawingArea):
|
||||
px = min( px, self.map_pixbuf.get_width()-1-pw/2)
|
||||
py = min( py, self.map_pixbuf.get_height()-1-ph/2)
|
||||
|
||||
try:
|
||||
zoomebuf = self.map_pixbuf.subpixbuf( max(0,int(px-pw/2)),max(0,int(py-ph/2)),
|
||||
min(self.map_pixbuf.get_width(),pw),
|
||||
min(self.map_pixbuf.get_height(),ph))
|
||||
@ -242,6 +243,8 @@ class ZoomMap( gtk.DrawingArea):
|
||||
self.current_map_area = (mx, my, mw, mh)
|
||||
if self.guide:
|
||||
self.guide.hightlight_area( (mx,my,mw,mh))
|
||||
except:
|
||||
pass
|
||||
|
||||
# Scroll to requested position
|
||||
def scroll_to( self, long, lat):
|
||||
|
Loading…
Reference in New Issue
Block a user