8452: Geography : Attempting to print crashes(core dumps python)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user