Code

Fix compile when lcms is disabled
authorcilix42 <cilix42@users.sourceforge.net>
Wed, 21 Jan 2009 20:57:33 +0000 (20:57 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Wed, 21 Jan 2009 20:57:33 +0000 (20:57 +0000)
src/color-profile.cpp
src/ui/dialog/document-properties.cpp

index d3a7b9a4dbb1d3572bce78b6e068204e2eb1f8ba..a562d756c7967c5d0abf7fcc111362db25384075 100644 (file)
@@ -275,9 +275,8 @@ void ColorProfile::set( SPObject *object, unsigned key, gchar const *value )
 #ifdef DEBUG_LCMS
                     DEBUG_MESSAGE( lcmsOne, "cmsOpenProfileFromFile( '%s'...) = %p", fullname, (void*)cprof->profHandle );
 #endif // DEBUG_LCMS
-
-#endif // ENABLE_LCMS
                     g_free(fullname);
+#endif // ENABLE_LCMS
                 }
             }
             object->requestModified(SP_OBJECT_MODIFIED_FLAG);
index 36861ad2c7f0db5b6c373c2d59775f657b0d14a2..78b1c6f1152a8ebd49bd3e0ea31f074f60bcb54f 100644 (file)
@@ -683,8 +683,10 @@ DocumentProperties::build_scripting()
 
     _add_btn.signal_clicked().connect(sigc::mem_fun(*this, &DocumentProperties::addExternalScript));
 
+#if ENABLE_LCMS
     _ExternalScriptsList.signal_button_release_event().connect_notify(sigc::mem_fun(*this, &DocumentProperties::external_scripts_list_button_release));
     scripting_create_popup_menu(_ExternalScriptsList, sigc::mem_fun(*this, &DocumentProperties::removeExternalScript));
+#endif // ENABLE_LCMS
 
 //TODO: review this observers code:
     const GSList *current = sp_document_get_resource_list( SP_ACTIVE_DOCUMENT, "script" );