summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-11-18 13:09:10 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-11-18 13:09:10 +0000
commitb467b487fcf7580576e90f43cbdbd4f5f1d8ec3a (patch)
tree471712340c04c9ef455db03689c6cb62517d9c63 /src/ui
parentSwitched from directly using CairoOutputDev to using the poppler-glib API (diff)
downloadinkscape-b467b487fcf7580576e90f43cbdbd4f5f1d8ec3a.tar.gz
inkscape-b467b487fcf7580576e90f43cbdbd4f5f1d8ec3a.zip
further work on the gtkmm exception problems in the file dialog/filedialogimpl-gtkmm.cpp
(bzr r4106)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/filedialogimpl-gtkmm.cpp9
1 files changed, 7 insertions, 2 deletions
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();