summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeoff Lankow <geoff@darktrojan.net>2015-07-15 12:23:14 +0000
committerGeoff Lankow <geoff@darktrojan.net>2015-07-15 12:23:14 +0000
commit6699c5e9fbdae104044748ee6039a5e09d78f001 (patch)
tree111afe70d8ffddbb2fd91c9f5683a6dc3d21b7e2 /src
parentReread guide colour after setting default colour (diff)
downloadinkscape-6699c5e9fbdae104044748ee6039a5e09d78f001.tar.gz
inkscape-6699c5e9fbdae104044748ee6039a5e09d78f001.zip
Read inkscape:color attribute in more places
(bzr r14228.1.4)
Diffstat (limited to 'src')
-rw-r--r--src/sp-guide.cpp1
-rw-r--r--src/sp-namedview.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index b4f4cecc0..b9c124138 100644
--- a/src/sp-guide.cpp
+++ b/src/sp-guide.cpp
@@ -71,6 +71,7 @@ void SPGuide::build(SPDocument *document, Inkscape::XML::Node *repr)
{
SPObject::build(document, repr);
+ this->readAttr( "inkscape:color" );
this->readAttr( "inkscape:label" );
this->readAttr( "orientation" );
this->readAttr( "position" );
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp
index 29c528633..b8554f352 100644
--- a/src/sp-namedview.cpp
+++ b/src/sp-namedview.cpp
@@ -665,6 +665,7 @@ void SPNamedView::child_added(Inkscape::XML::Node *child, Inkscape::XML::Node *r
//g_object_set(G_OBJECT(g), "color", this->guidecolor, "hicolor", this->guidehicolor, NULL);
g->setColor(this->guidecolor);
g->setHiColor(this->guidehicolor);
+ g->readAttr("inkscape:color");
if (this->editable) {
for (GSList *l = this->views; l != NULL; l = l->next) {