handle FileError exception in create_from_file, and more debug...

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3611 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Doug McLain 2008-07-15 07:45:09 +00:00
parent 56efbf54b4
commit 9ea93a27ac

View file

@ -560,7 +560,12 @@ get_xpm (std::string name)
{
cerr << "xpm path = " << ARDOUR::find_data_file(name, "pixmaps") << endl;//DEBUG
if (!xpm_map[name]) {
xpm_map[name] = Gdk::Pixbuf::create_from_file (ARDOUR::find_data_file(name, "pixmaps"));
try {
xpm_map[name] = Gdk::Pixbuf::create_from_file (ARDOUR::find_data_file(name, "pixmaps"));
}
catch(const Glib::Error& e) {
cerr << e.what() << endl;
}
}
return (xpm_map[name]);