summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-04-14 07:36:34 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-04-14 07:36:34 +0000
commitc4bf8cf15f8a51ab58b358ae84a3c761090503f5 (patch)
treed5595266d453bb65360da4bb6951cc0da312fd69 /src/nodepath.cpp
parentfix 216898 (diff)
downloadinkscape-c4bf8cf15f8a51ab58b358ae84a3c761090503f5.tar.gz
inkscape-c4bf8cf15f8a51ab58b358ae84a3c761090503f5.zip
whitespace + comment
(bzr r5437)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index faade79a6..a9886046c 100644
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -4738,13 +4738,17 @@ void sp_nodepath_show_helperpath(Inkscape::NodePath::Path *np, bool show) {
}
}
-/* this function does not work yet */
+/* sp_nodepath_make_straight_path:
+ * Prevents user from curving the path by dragging a segment or activating handles etc.
+ * The resulting path is a linear interpolation between nodal points, with only straight segments.
+ * !!! this function does not work completely yet: it does not actively straighten the path, only prevents the path from being curved
+ */
void sp_nodepath_make_straight_path(Inkscape::NodePath::Path *np) {
np->straight_path = true;
np->show_handles = false;
g_message("add code to make the path straight.");
// do sp_nodepath_convert_node_type on all nodes?
- // search for this text !!! "Make selected segments lines"
+ // coding tip: search for this text : "Make selected segments lines"
}