diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-11-05 18:30:49 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-11-05 18:30:49 +0000 |
| commit | f51e8d7c6b4e2caa9e470af674949f3cd1695bf5 (patch) | |
| tree | 2a733dbe915ff764ee9df8ac5840fa084c3f2ffc /src/ui/tools/node-tool.cpp | |
| parent | Symbols. Fix for bug #1388910 (There is an unnecessary character in MapSymbol... (diff) | |
| download | inkscape-f51e8d7c6b4e2caa9e470af674949f3cd1695bf5.tar.gz inkscape-f51e8d7c6b4e2caa9e470af674949f3cd1695bf5.zip | |
Refactor to remove references to Desktop/Ui in Effect, bspline and fillet-chamfer.
Also fixed the selected node problem in units not px.
Also fixed two var to not allow NULL pointed by Johan Engelen.
(bzr r13672)
Diffstat (limited to 'src/ui/tools/node-tool.cpp')
| -rw-r--r-- | src/ui/tools/node-tool.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/tools/node-tool.cpp b/src/ui/tools/node-tool.cpp index e2bb85d11..99d60e2b7 100644 --- a/src/ui/tools/node-tool.cpp +++ b/src/ui/tools/node-tool.cpp @@ -305,6 +305,16 @@ void NodeTool::update_helperpath () { if (SP_IS_LPE_ITEM(selection->singleItem())) { Inkscape::LivePathEffect::Effect *lpe = SP_LPE_ITEM(selection->singleItem())->getCurrentLPE(); if (lpe && lpe->isVisible()/* && lpe->showOrigPath()*/) { + Inkscape::UI::ControlPointSelection::Set &selectionNodes = _selected_nodes->allPoints(); + std::vector<Geom::Point> selectedNodesPositions; + for (Inkscape::UI::ControlPointSelection::Set::iterator i = selectionNodes.begin(); i != selectionNodes.end(); ++i) { + if ((*i)->selected()) { + Inkscape::UI::Node *n = dynamic_cast<Inkscape::UI::Node *>(*i); + selectedNodesPositions.push_back(desktop->doc2dt(n->position())); + } + } + lpe->setSelectedNodePoints(selectedNodesPositions); + lpe->setCurrentZoom(this->desktop->current_zoom()); SPCurve *c = new SPCurve(); SPCurve *cc = new SPCurve(); std::vector<Geom::PathVector> cs = lpe->getCanvasIndicators(SP_LPE_ITEM(selection->singleItem())); |
