diff options
| author | Alvin Penner <penner@vaxxine.com> | 2012-06-03 17:01:26 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2012-06-03 17:01:26 +0000 |
| commit | 365aee665ef9fe8602c04c4ace9e0a1ffd19b1ec (patch) | |
| tree | dc664f8bd7de4245f72009ac76debf1224cfad62 | |
| parent | UI fix find dialog (diff) | |
| download | inkscape-365aee665ef9fe8602c04c4ace9e0a1ffd19b1ec.tar.gz inkscape-365aee665ef9fe8602c04c4ace9e0a1ffd19b1ec.zip | |
modify calc of bbox for single point (Bug 1006666)
Fixed bugs:
- https://launchpad.net/bugs/1006666
(bzr r11457)
| -rw-r--r-- | src/livarot/PathOutline.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<PathDescrLineTo*>(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(); |
