From: cilix42 Date: Tue, 10 Jun 2008 14:10:01 +0000 (+0000) Subject: Get rid of get_bpath() in lpe-tangent_to_curve.cpp X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=928b4b73759121ceb2a0cc430a8059708b36be99;p=inkscape.git Get rid of get_bpath() in lpe-tangent_to_curve.cpp --- 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 > pwd2; - std::vector 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