summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/node-tool.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-06-18 22:58:42 +0000
committerjabiertxof <info@marker.es>2016-06-18 22:58:42 +0000
commit6820ee49d69cd419c5e8d3c9de74b0552758c842 (patch)
tree9d28789e1c620584983d48e28d6afe8411f396d6 /src/ui/tools/node-tool.cpp
parentfixing bug moving nodes (diff)
downloadinkscape-6820ee49d69cd419c5e8d3c9de74b0552758c842.tar.gz
inkscape-6820ee49d69cd419c5e8d3c9de74b0552758c842.zip
Fixes when moves a path
(bzr r13645.1.163)
Diffstat (limited to '')
-rw-r--r--src/ui/tools/node-tool.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/tools/node-tool.cpp b/src/ui/tools/node-tool.cpp
index 6a1feb760..9bdc578c1 100644
--- a/src/ui/tools/node-tool.cpp
+++ b/src/ui/tools/node-tool.cpp
@@ -292,15 +292,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 &selection_nodes = _selected_nodes->allPoints();
- std::vector<Geom::Point> selected_nodes_pos;
+ Inkscape::UI::ControlPointSelection::Set &selection_nodes = this->_selected_nodes->allPoints();
+ std::vector<Geom::Point> positions;
+ Geom::Affine affine = SP_ITEM(selection->singleItem())->i2dt_affine();
for (Inkscape::UI::ControlPointSelection::Set::iterator i = selection_nodes.begin(); i != selection_nodes.end(); ++i) {
if ((*i)->selected()) {
Inkscape::UI::Node *n = dynamic_cast<Inkscape::UI::Node *>(*i);
- selected_nodes_pos.push_back(n->position());
+ positions.push_back(n->position() * affine);
}
}
- lpe->setSelectedNodes(selected_nodes_pos);
+ lpe->setSelectedNodes(positions);
lpe->setCurrentZoom(this->desktop->current_zoom());
SPCurve *c = new SPCurve();
SPCurve *cc = new SPCurve();