summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-10 14:10:01 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-10 14:10:01 +0000
commit8be20964688d2dd8f21c666079b2ce4b1867dbb6 (patch)
tree48f5fa26926a09e03a572fbe63713a735ae65a2b /src
parentDon't convert path to straight line for LPE perpendicular bisector (diff)
downloadinkscape-8be20964688d2dd8f21c666079b2ce4b1867dbb6.tar.gz
inkscape-8be20964688d2dd8f21c666079b2ce4b1867dbb6.zip
Get rid of get_bpath() in lpe-tangent_to_curve.cpp
(bzr r5874)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-tangent_to_curve.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/live_effects/lpe-tangent_to_curve.cpp b/src/live_effects/lpe-tangent_to_curve.cpp
index 2115e9d7e..b46b602c3 100644
--- a/src/live_effects/lpe-tangent_to_curve.cpp
+++ b/src/live_effects/lpe-tangent_to_curve.cpp
@@ -123,9 +123,8 @@ KnotHolderEntityAttachPt::knot_set(NR::Point const &p, NR::Point const &origin,
// FIXME: There must be a better way of converting the path's SPCurve* to pwd2.
SPCurve *curve = sp_path_get_curve_for_edit (SP_PATH(item));
- const NArtBpath *bpath = curve->get_bpath();
+ Geom::PathVector pathv = curve->get_pathvector();
Piecewise<D2<SBasis> > pwd2;
- std::vector<Geom::Path> pathv = BPath_to_2GeomPath(bpath);
for (unsigned int i=0; i < pathv.size(); i++) {
pwd2.concat(pathv[i].toPwSb());
}
@@ -134,7 +133,7 @@ KnotHolderEntityAttachPt::knot_set(NR::Point const &p, NR::Point const &origin,
lpe->t_attach.param_set_value(t0);
// FIXME: this should not directly ask for updating the item. It should write to SVG, which triggers updating.
- sp_lpe_item_update_patheffect (SP_LPE_ITEM(item), true, true);
+ sp_lpe_item_update_patheffect (SP_LPE_ITEM(item), false, true);
}
void