From: johanengelen Date: Sun, 18 Nov 2007 13:09:10 +0000 (+0000) Subject: further work on the gtkmm exception problems in the file dialog/filedialogimpl-gtkmm.cpp X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=adbdb8454c7ffd17dfb8a96221f9ef79f30c1bd4;p=inkscape.git further work on the gtkmm exception problems in the file dialog/filedialogimpl-gtkmm.cpp --- diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index 5dd8e66f2..a1773d39a 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -209,16 +209,21 @@ void SVGPreview::showImage(Glib::ustring &theFileName) try { img = Gdk::Pixbuf::create_from_file(fileName); } - catch (Glib::FileError & e) + catch (const Glib::FileError & e) { g_message("caught Glib::FileError in SVGPreview::showImage"); return; } - catch (Gdk::PixbufError & e) + catch (const Gdk::PixbufError & e) { g_message("Gdk::PixbufError in SVGPreview::showImage"); return; } + catch (...) + { + g_message("Caught ... in SVGPreview::showImage"); + return; + } gint imgWidth = img->get_width(); gint imgHeight = img->get_height();