summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-04-14 07:42:16 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-04-14 07:42:16 +0000
commit2509c31956ed092493824ae1f54713cdd1dfd58e (patch)
tree60f87e313fbce40d44eedfde3a2ae93e94b62504 /src
parentwhitespace + comment (diff)
downloadinkscape-2509c31956ed092493824ae1f54713cdd1dfd58e.tar.gz
inkscape-2509c31956ed092493824ae1f54713cdd1dfd58e.zip
use sp_nodepath_make_straight_path in LPEGears
(bzr r5438)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-gears.cpp2
-rw-r--r--src/nodepath.h1
2 files changed, 2 insertions, 1 deletions
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<NR::Coord> 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);