From a7ced41f3fa6933d0da0151ef42e82e0862581fb Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Mon, 1 Apr 2013 01:09:52 +0200 Subject: Fix scale and rotate some nodes (bzr r11950.1.78) --- src/live_effects/lpe-bspline.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/live_effects') diff --git a/src/live_effects/lpe-bspline.cpp b/src/live_effects/lpe-bspline.cpp index ee771a54e..37d6a86a5 100644 --- a/src/live_effects/lpe-bspline.cpp +++ b/src/live_effects/lpe-bspline.cpp @@ -29,6 +29,7 @@ #include "ui/widget/scalar.h" #include "selection.h" #include "gtkmm/checkbutton.h" +#include "ui/tool/node.h" // For handling un-continuous paths: #include "message-stack.h" #include "inkscape.h" @@ -337,15 +338,34 @@ LPEBSpline::changeWeight(double weightValue) DocumentUndo::done(sp_desktop_document(desktop), SP_VERB_CONTEXT_LPE, _("Modified the weight of the BSpline")); } - +//bool +//LPEBspline::selectedPoint(Geom::Point p){ +// for (SubpathList::iterator i = NodeIterator.begin(); i != NodeIterator.end(); ++i) { +// if (i->selected() && i.ptr()->getPosition() == p) { +// return true; +// } +// } +// return false; +//} +//bool +//LPEBspline::hasNodesSelected(){ +// for (SubpathList::iterator i = NodeIterator.begin(); i != NodeIterator.end(); ++i) { +// if (i->selected() && i.ptr()->getPosition() == p) { +// return true; +// } +// } +// return false; +//} void LPEBSpline::doBSplineFromWidget(SPCurve * curve, double weightValue , bool ignoreCusp) { using Geom::X; using Geom::Y; + //bool hasNodesSelected = LPEBspline::hasNodesSelected(); if(curve->get_segment_count() < 2) return; // Make copy of old path as it is changed during processing + Geom::PathVector const original_pathv = curve->get_pathvector(); curve->reset(); -- cgit v1.2.3