diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2009-01-02 15:16:26 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2009-01-02 15:16:26 +0000 |
| commit | 04d9e6d167063ebbd820fdfb56c3140e3399d5aa (patch) | |
| tree | bb00057519a9d051a9305652ed3f3ef7328161d2 /src/livarot/PathStroke.cpp | |
| parent | Move filters into their own namespace Inkscape::Filters (from NR::) (diff) | |
| download | inkscape-04d9e6d167063ebbd820fdfb56c3140e3399d5aa.tar.gz inkscape-04d9e6d167063ebbd820fdfb56c3140e3399d5aa.zip | |
fix bug in livarot where open paths are rendered as closed path when start == end point. now svg testsuite paths-data-10-t.svg is rendered correctly
(bzr r7059)
Diffstat (limited to 'src/livarot/PathStroke.cpp')
| -rw-r--r-- | src/livarot/PathStroke.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/livarot/PathStroke.cpp b/src/livarot/PathStroke.cpp index 5e952eff7..18cd05033 100644 --- a/src/livarot/PathStroke.cpp +++ b/src/livarot/PathStroke.cpp @@ -65,7 +65,7 @@ void Path::Stroke(Shape *dest, bool doClose, double width, JoinType join, if ( lastP > lastM+1 ) { Geom::Point sbStart = pts[lastM].p; Geom::Point sbEnd = pts[lastP - 1].p; - if ( Geom::LInfty(sbEnd-sbStart) < 0.00001 ) { // why close lines that shouldn't be closed? + if ( pts[lastP - 1].closed /*Geom::LInfty(sbEnd-sbStart) < 0.00001 */ ) { // why close lines that shouldn't be closed? // ah I see, because close is defined here for // a whole path and should be defined per subpath. // debut==fin => ferme (on devrait garder un element pour les close(), mais tant pis) |
