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

This commit is contained in:
SNoiraud 2016-06-28 10:52:02 +02:00
parent 66bf311168
commit 32a8151751

View File

@ -842,6 +842,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