From f24ef15518768f44d0546899749c36a994b05924 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 28 Jun 2016 10:47:02 +0200 Subject: [PATCH] 8452: Geography : Attempting to print crashes(core dumps python) --- gramps/plugins/lib/maps/geography.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gramps/plugins/lib/maps/geography.py b/gramps/plugins/lib/maps/geography.py index 89ddd26b4..fa2413c7a 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -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