summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFelipe Corr??a da Silva Sanches <juca@members.fsf.org>2009-01-29 21:09:39 +0000
committerJucaBlues <JucaBlues@users.sourceforge.net>2009-01-29 21:09:39 +0000
commit8c3d235690a79d4fde1e67dfd15eba22749edaa5 (patch)
tree52225471b510ddf5bb1ddca9f6df94a14c465f3f /src
parentSome consistency cleanup for descriptions. (diff)
downloadinkscape-8c3d235690a79d4fde1e67dfd15eba22749edaa5.tar.gz
inkscape-8c3d235690a79d4fde1e67dfd15eba22749edaa5.zip
fix crash described at
https://bugs.launchpad.net/inkscape/+bug/307567 (bzr r7206)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/document-properties.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp
index 76a50c9c7..d472715c4 100644
--- a/src/ui/dialog/document-properties.cpp
+++ b/src/ui/dialog/document-properties.cpp
@@ -391,6 +391,10 @@ DocumentProperties::linkSelectedProfile()
if (!desktop){
g_warning("No active desktop");
} else {
+ if (!_menu.get_active()){
+ g_warning("No color profile available.");
+ return;
+ }
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
Inkscape::XML::Node *cprofRepr = xml_doc->createElement("svg:color-profile");
cprofRepr->setAttribute("name", (gchar*) _menu.get_active()->get_data("name"));