4156: Database export crash because of entagled jpeg libraries

svn: r18636
This commit is contained in:
Michiel Nauta 2011-12-19 18:35:23 +00:00
parent 49e1d936da
commit dc4061b410

View File

@ -137,8 +137,15 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) :
if not self.person: if not self.person:
self.person = self.dbstate.db.find_initial_person() self.person = self.dbstate.db.find_initial_person()
self.logo = gtk.gdk.pixbuf_new_from_file(_gramps_png) try:
self.splash = gtk.gdk.pixbuf_new_from_file(_splash_jpg) self.logo = gtk.gdk.pixbuf_new_from_file(_gramps_png)
except:
self.logo = None
try:
self.splash = gtk.gdk.pixbuf_new_from_file(_splash_jpg)
except:
self.splash = None
pmgr = GuiPluginManager.get_instance() pmgr = GuiPluginManager.get_instance()
self.__exporters = pmgr.get_export_plugins() self.__exporters = pmgr.get_export_plugins()