From a9c4f968812f8dad06b694573d3ed67eb03dafcd Mon Sep 17 00:00:00 2001 From: bulia byak Date: Sat, 1 Apr 2006 03:04:55 +0000 Subject: switch get_nearest_position and get_point to using supplied livarot Path instead of creating one each time from an item (bzr r384) --- src/splivarot.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/splivarot.h') diff --git a/src/splivarot.h b/src/splivarot.h index ae83d22bb..4e73eac9f 100644 --- a/src/splivarot.h +++ b/src/splivarot.h @@ -41,8 +41,9 @@ void sp_selected_path_outline (); // simplifies a path (removes small segments and the like) void sp_selected_path_simplify (); -NR::Maybe get_nearest_position_on_Path(SPItem *item, NR::Point p); -NR::Point get_point_on_Path(SPItem *item, int piece, double t); +Path *Path_for_item(SPItem *item, bool doTransformation, bool transformFull = true); +NR::Maybe get_nearest_position_on_Path(Path *path, NR::Point p); +NR::Point get_point_on_Path(Path *path, int piece, double t); #endif -- cgit v1.2.3