summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-04-10 09:24:37 +0000
committerJabiertxo Arraiza Zenotz <jtx@jtx.marker.es>2013-04-10 09:24:37 +0000
commit850b66384422dd18e3d2be7bd75ae05498aa86e2 (patch)
tree8c64eab17ee23d0c459cd16416a8f678e86dd350 /src/live_effects
parentfixing error moving selected nodes (diff)
parentpatch by Damjan Velickovski for rotation snap degrees, Bug 525508 (diff)
downloadinkscape-850b66384422dd18e3d2be7bd75ae05498aa86e2.tar.gz
inkscape-850b66384422dd18e3d2be7bd75ae05498aa86e2.zip
Fixing problem whith changing node sselected - not solved
(bzr r11950.1.87)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/lpe-bspline.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/live_effects/lpe-bspline.cpp b/src/live_effects/lpe-bspline.cpp
index 657b2ded3..e7adab071 100644
--- a/src/live_effects/lpe-bspline.cpp
+++ b/src/live_effects/lpe-bspline.cpp
@@ -373,10 +373,12 @@ LPEBSpline::doBSplineFromWidget(SPCurve * curve, double weightValue)
InkNodeTool *nt = INK_NODE_TOOL(desktop->event_context);
Inkscape::UI::ControlPointSelection::Set &selection = nt->_selected_nodes->allPoints();
points.clear();
+ std::vector<Geom::Point>::iterator pbegin;
for (Inkscape::UI::ControlPointSelection::Set::iterator i = selection.begin(); i != selection.end(); ++i){
if ((*i)->selected()) {
Inkscape::UI::Node *n = static_cast<Inkscape::UI::Node*>(*i);
- points.insert(points.begin(),desktop->doc2dt(n->position()));
+ pbegin = points.begin();
+ points.insert(pbegin,desktop->doc2dt(n->position()));
}
}
}