diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-08-01 16:34:14 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-08-01 16:34:14 +0000 |
| commit | e4f398171b8da1b990125dfc44277c886212702c (patch) | |
| tree | 0a2cffaf254d3364620d0d642ec5b0843303431a /src | |
| parent | Fix to hidde all elements when hide the effect (diff) | |
| download | inkscape-e4f398171b8da1b990125dfc44277c886212702c.tar.gz inkscape-e4f398171b8da1b990125dfc44277c886212702c.zip | |
Fixed compiling bug
(bzr r15017.1.28)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-measure-line.cpp | 53 |
1 files changed, 25 insertions, 28 deletions
diff --git a/src/live_effects/lpe-measure-line.cpp b/src/live_effects/lpe-measure-line.cpp index 792b0a512..5e638c4e4 100644 --- a/src/live_effects/lpe-measure-line.cpp +++ b/src/live_effects/lpe-measure-line.cpp @@ -170,52 +170,49 @@ LPEMeasureLine::doOnVisibilityToggled(SPLPEItem const* /*lpeitem*/) Inkscape::URIReference* SVGElemRef = new Inkscape::URIReference(desktop->doc()); SVGElemRef->attach(SVGElem_uri); SPObject *elemref = NULL; - Inkscape::XML::Node *rtext = NULL; + Inkscape::XML::Node *node = NULL; if (elemref = SVGElemRef->getObject()) { - rtext = elemref->getRepr(); + node = elemref->getRepr(); if (!this->isVisible()) { - rtext->setAttribute("style", "display:none"); + node->setAttribute("style", "display:none"); } else { - rtext->setAttribute("style", NULL); + node->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; + Inkscape::URI SVGElem_uri2(((Glib::ustring)"#" + (Glib::ustring)"infoline-on-start-" + (Glib::ustring)this->getRepr()->attribute("id")).c_str()); + SVGElemRef->attach(SVGElem_uri2); + elemref = NULL; + node = NULL; if (elemref = SVGElemRef->getObject()) { - rtext = elemref->getRepr(); + node = elemref->getRepr(); if (!this->isVisible()) { - rtext->setAttribute("style", "display:none"); + node->setAttribute("style", "display:none"); } else { - rtext->setAttribute("style", NULL); + node->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; + Inkscape::URI SVGElem_uri3(((Glib::ustring)"#" + (Glib::ustring)"infoline-on-end-" + (Glib::ustring)this->getRepr()->attribute("id")).c_str()); + SVGElemRef->attach(SVGElem_uri3); + elemref = NULL; + node = NULL; if (elemref = SVGElemRef->getObject()) { - rtext = elemref->getRepr(); + node = elemref->getRepr(); if (!this->isVisible()) { - rtext->setAttribute("style", "display:none"); + node->setAttribute("style", "display:none"); } else { - rtext->setAttribute("style", NULL); + node->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; + Inkscape::URI SVGElem_uri4(((Glib::ustring)"#" + (Glib::ustring)"infoline-" + (Glib::ustring)this->getRepr()->attribute("id")).c_str()); + SVGElemRef->attach(SVGElem_uri4); + elemref = NULL; + node = NULL; if (elemref = SVGElemRef->getObject()) { - rtext = elemref->getRepr(); + node = elemref->getRepr(); if (!this->isVisible()) { - rtext->setAttribute("style", "display:none"); + node->setAttribute("style", "display:none"); } else { - rtext->setAttribute("style", NULL); + node->setAttribute("style", NULL); } } } |
