From 32a815175104b54a5d63972eb3d169d4aae5aae3 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 28 Jun 2016 10:52: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 34d0af059..e32ed68aa 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -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