Code

Document properties now treats lcms file load failures as non-fatal. Fixes bug #501782
authorJon A. Cruz <jon@joncruz.org>
Thu, 31 Dec 2009 10:04:42 +0000 (02:04 -0800)
committerJon A. Cruz <jon@joncruz.org>
Thu, 31 Dec 2009 10:04:42 +0000 (02:04 -0800)
src/ui/dialog/document-properties.cpp

index 982fb341536b8e07b9d1abbd4129fc4fc0f283f9..a7241ea405831e342b06dba912a205cb3382b350 100644 (file)
@@ -353,6 +353,7 @@ DocumentProperties::populate_available_profiles(){
                 while ((filename = (gchar *)g_dir_read_name(directory)) != NULL) {
                     gchar* full = g_build_filename(it->c_str(), filename, NULL);
                     if ( !Inkscape::IO::file_test( full, G_FILE_TEST_IS_DIR ) ) {
+                        cmsErrorAction( LCMS_ERROR_SHOW );
                         cmsHPROFILE hProfile = cmsOpenProfileFromFile(full, "r");
                         if (hProfile != NULL){
                             const gchar* name;