diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-measure-line.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/live_effects/lpe-measure-line.cpp b/src/live_effects/lpe-measure-line.cpp index c78475fe8..792b0a512 100644 --- a/src/live_effects/lpe-measure-line.cpp +++ b/src/live_effects/lpe-measure-line.cpp @@ -179,6 +179,45 @@ LPEMeasureLine::doOnVisibilityToggled(SPLPEItem const* /*lpeitem*/) rtext->setAttribute("style", NULL); } } + Inkscape::URI SVGElem_uri(((Glib::ustring)"#" + (Glib::ustring)"infoline-on-start-" + (Glib::ustring)this->getRepr()->attribute("id")).c_str()); + Inkscape::URIReference* SVGElemRef = new Inkscape::URIReference(desktop->doc()); + SVGElemRef->attach(SVGElem_uri); + SPObject *elemref = NULL; + Inkscape::XML::Node *rtext = NULL; + if (elemref = SVGElemRef->getObject()) { + rtext = elemref->getRepr(); + if (!this->isVisible()) { + rtext->setAttribute("style", "display:none"); + } else { + rtext->setAttribute("style", NULL); + } + } + Inkscape::URI SVGElem_uri(((Glib::ustring)"#" + (Glib::ustring)"infoline-on-end-" + (Glib::ustring)this->getRepr()->attribute("id")).c_str()); + Inkscape::URIReference* SVGElemRef = new Inkscape::URIReference(desktop->doc()); + SVGElemRef->attach(SVGElem_uri); + SPObject *elemref = NULL; + Inkscape::XML::Node *rtext = NULL; + if (elemref = SVGElemRef->getObject()) { + rtext = elemref->getRepr(); + if (!this->isVisible()) { + rtext->setAttribute("style", "display:none"); + } else { + rtext->setAttribute("style", NULL); + } + } + Inkscape::URI SVGElem_uri(((Glib::ustring)"#" + (Glib::ustring)"infoline-" + (Glib::ustring)this->getRepr()->attribute("id")).c_str()); + Inkscape::URIReference* SVGElemRef = new Inkscape::URIReference(desktop->doc()); + SVGElemRef->attach(SVGElem_uri); + SPObject *elemref = NULL; + Inkscape::XML::Node *rtext = NULL; + if (elemref = SVGElemRef->getObject()) { + rtext = elemref->getRepr(); + if (!this->isVisible()) { + rtext->setAttribute("style", "display:none"); + } else { + rtext->setAttribute("style", NULL); + } + } } } |
