From b337a5de023075fc3916baee97218c72f95b7fdd Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 18 Nov 2007 13:59:34 +0000 Subject: Make LPE Path along path behave more naturally. (fixes problems in moving a path with that effect applied to it) (bzr r4107) --- src/live_effects/lpe-skeletalstrokes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/live_effects/lpe-skeletalstrokes.cpp') diff --git a/src/live_effects/lpe-skeletalstrokes.cpp b/src/live_effects/lpe-skeletalstrokes.cpp index 8e70f8a87..effa66e54 100644 --- a/src/live_effects/lpe-skeletalstrokes.cpp +++ b/src/live_effects/lpe-skeletalstrokes.cpp @@ -107,7 +107,7 @@ LPESkeletalStrokes::doEffect_pwd2 (Geom::Piecewise > & pw Interval pattBnds = bounds_exact(x); x -= pattBnds.min(); Interval pattBndsY = bounds_exact(y); - y -= (pattBndsY.max()+pattBndsY.min())/2; + y -= pattBndsY.middle(); int nbCopies = int(uskeleton.cuts.back()/pattBnds.extent()); double scaling = 1; -- cgit v1.2.3