From 365aee665ef9fe8602c04c4ace9e0a1ffd19b1ec Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Sun, 3 Jun 2012 13:01:26 -0400 Subject: modify calc of bbox for single point (Bug 1006666) Fixed bugs: - https://launchpad.net/bugs/1006666 (bzr r11457) --- src/livarot/PathOutline.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/livarot/PathOutline.cpp b/src/livarot/PathOutline.cpp index d170e5d3a..f00798c8a 100644 --- a/src/livarot/PathOutline.cpp +++ b/src/livarot/PathOutline.cpp @@ -465,15 +465,15 @@ void Path::SubContractOutline(int off, int num_pd, { PathDescrLineTo* nData = dynamic_cast(descr_cmd[curD]); nextX = nData->p; + // et on avance + TangentOnSegAt (0.0, curX, *nData, stPos, stTgt, stTle); + TangentOnSegAt (1.0, curX, *nData, enPos, enTgt, enTle); // test de nullité du segment if (IsNulCurve (descr_cmd, curD, curX)) { - curP++; - continue; + stTgt = dest->descr_cmd.size() ? Geom::Point(1, 0) : Geom::Point(-1, 0); // reverse direction + enTgt = stTgt; } - // et on avance - TangentOnSegAt (0.0, curX, *nData, stPos, stTgt, stTle); - TangentOnSegAt (1.0, curX, *nData, enPos, enTgt, enTle); stNor=stTgt.cw(); enNor=enTgt.cw(); -- cgit v1.2.3