summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2009-01-21 20:57:33 +0000
committercilix42 <cilix42@users.sourceforge.net>2009-01-21 20:57:33 +0000
commit7a00c5b7e7196e429d5eb3651ca59f3c716e13ad (patch)
tree8adaf1e912226036a3f4cfd31e49b498105a428b /src
parentupdated translation from JazzyNico (diff)
downloadinkscape-7a00c5b7e7196e429d5eb3651ca59f3c716e13ad.tar.gz
inkscape-7a00c5b7e7196e429d5eb3651ca59f3c716e13ad.zip
Fix compile when lcms is disabled
(bzr r7156)
Diffstat (limited to 'src')
-rw-r--r--src/color-profile.cpp3
-rw-r--r--src/ui/dialog/document-properties.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index d3a7b9a4d..a562d756c 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -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);
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp
index 36861ad2c..78b1c6f11 100644
--- a/src/ui/dialog/document-properties.cpp
+++ b/src/ui/dialog/document-properties.cpp
@@ -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" );