8452: Geography : Attempting to print crashes(core dumps python)

This commit is contained in:
SNoiraud 2016-06-28 10:47:02 +02:00
parent be6715cd99
commit f24ef15518

View File

@ -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