summaryrefslogtreecommitdiffstats
path: root/src/sp-guide.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-08-26 19:35:34 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-08-26 19:35:34 +0000
commit8e2a1a4407a19fc9b794c2c29cc1e6eb41c83559 (patch)
tree062e8e1f329373a873532a746c3ef2ca81d6fc94 /src/sp-guide.cpp
parentadd 'little' comment (diff)
parentPrevent crash when "vector" doesn't exist (i.e. for mesh gradient). (diff)
downloadinkscape-8e2a1a4407a19fc9b794c2c29cc1e6eb41c83559.tar.gz
inkscape-8e2a1a4407a19fc9b794c2c29cc1e6eb41c83559.zip
update to trunk
(bzr r13645.1.115)
Diffstat (limited to 'src/sp-guide.cpp')
-rw-r--r--src/sp-guide.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index 4e1c5913d..b9c124138 100644
--- a/src/sp-guide.cpp
+++ b/src/sp-guide.cpp
@@ -26,6 +26,7 @@
#include "display/sp-canvas.h"
#include "display/guideline.h"
#include "svg/svg.h"
+#include "svg/svg-color.h"
#include "svg/stringstream.h"
#include "attributes.h"
#include "sp-guide.h"
@@ -70,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" );
@@ -95,6 +97,11 @@ void SPGuide::release()
void SPGuide::set(unsigned int key, const gchar *value) {
switch (key) {
+ case SP_ATTR_INKSCAPE_COLOR:
+ if (value) {
+ this->setColor(sp_svg_read_color(value, 0x0000ff00) | 0x7f);
+ }
+ break;
case SP_ATTR_INKSCAPE_LABEL:
if (this->label) g_free(this->label);