summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-03 01:24:50 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-03 01:24:50 +0000
commit4eed716131afa00f3590b7d60600ef0c476c78e3 (patch)
tree482a6fc6c616191d9a7ffc4f60ceaa28ae175b64 /src/sp-item.cpp
parentModified Objects dialogue to stop crashing on change of highlight color (diff)
downloadinkscape-4eed716131afa00f3590b7d60600ef0c476c78e3.tar.gz
inkscape-4eed716131afa00f3590b7d60600ef0c476c78e3.zip
Fixed path color when changed by Objects Dialog
(bzr r13090.1.11)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 79d8cc37d..ff3e3a31c 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -493,11 +493,23 @@ void SPItem::set(unsigned int key, gchar const* value) {
break;
}
case SP_ATTR_SODIPODI_INSENSITIVE:
+ {
item->sensitive = !value;
for (SPItemView *v = item->display; v != NULL; v = v->next) {
v->arenaitem->setSensitive(item->sensitive);
}
break;
+ }
+ case SP_ATTR_INKSCAPE_HIGHLIGHT_COLOR:
+ {
+ g_free(item->_highlightColor);
+ if (value) {
+ item->_highlightColor = g_strdup(value);
+ } else {
+ item->_highlightColor = NULL;
+ }
+ break;
+ }
case SP_ATTR_CONNECTOR_AVOID:
item->avoidRef->setAvoid(value);
break;
@@ -706,6 +718,11 @@ Inkscape::XML::Node* SPItem::write(Inkscape::XML::Document *xml_doc, Inkscape::X
g_free ((void *) uri);
}
}
+ if (item->_highlightColor){
+ repr->setAttribute("inkscape:highlight-color", item->_highlightColor);
+ } else {
+ repr->setAttribute("inkscape:highlight-color", NULL);
+ }
SPObject::write(xml_doc, repr, flags);