From: johanengelen Date: Mon, 14 Apr 2008 07:42:16 +0000 (+0000) Subject: use sp_nodepath_make_straight_path in LPEGears X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8c9d07faa45ace5594253cd76e4e211c659953a0;p=inkscape.git use sp_nodepath_make_straight_path in LPEGears --- diff --git a/src/live_effects/lpe-gears.cpp b/src/live_effects/lpe-gears.cpp index 7dcd32fcc..e211483c6 100644 --- a/src/live_effects/lpe-gears.cpp +++ b/src/live_effects/lpe-gears.cpp @@ -265,7 +265,7 @@ void LPEGears::setup_nodepath(Inkscape::NodePath::Path *np) { Effect::setup_nodepath(np); - np->straight_path = true; + sp_nodepath_make_straight_path(np); } } // namespace LivePathEffect diff --git a/src/nodepath.h b/src/nodepath.h index 47a36b90f..4b39388e5 100644 --- a/src/nodepath.h +++ b/src/nodepath.h @@ -308,6 +308,7 @@ NR::Maybe sp_node_selected_common_coord (Inkscape::NodePath::Path *no void sp_nodepath_show_handles(Inkscape::NodePath::Path *nodepath, bool show); void sp_nodepath_show_helperpath(Inkscape::NodePath::Path *nodepath, bool show); +void sp_nodepath_make_straight_path(Inkscape::NodePath::Path *np); void sp_nodepath_selected_nodes_rotate (Inkscape::NodePath::Path * nodepath, gdouble angle, int which, bool screen);