8452: Geography : Attempting to print crashes(core dumps python)
This commit is contained in:
parent
be6715cd99
commit
f24ef15518
@ -817,6 +817,13 @@ class GeoGraphyView(OsmGps, NavigationView):
|
||||
"""
|
||||
Print or save the view that is currently shown
|
||||
"""
|
||||
if Gtk.MAJOR_VERSION == 3 and Gtk.MINOR_VERSION < 11:
|
||||
from gramps.gui.dialog import WarningDialog
|
||||
WarningDialog(
|
||||
_("You can't use the print functionality"),
|
||||
_("Your Gtk version is too old."))
|
||||
return
|
||||
|
||||
req = self.osm.get_allocation()
|
||||
widthpx = req.width
|
||||
heightpx = req.height
|
||||
|
Loading…
Reference in New Issue
Block a user