mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 00:17:49 +01:00
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:
parent
56efbf54b4
commit
9ea93a27ac
1 changed files with 6 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue