summaryrefslogtreecommitdiffstats
path: root/src/livarot/Path.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2009-01-02 15:16:26 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2009-01-02 15:16:26 +0000
commit04d9e6d167063ebbd820fdfb56c3140e3399d5aa (patch)
treebb00057519a9d051a9305652ed3f3ef7328161d2 /src/livarot/Path.h
parentMove filters into their own namespace Inkscape::Filters (from NR::) (diff)
downloadinkscape-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/Path.h')
-rw-r--r--src/livarot/Path.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/livarot/Path.h b/src/livarot/Path.h
index b478449cd..102840d54 100644
--- a/src/livarot/Path.h
+++ b/src/livarot/Path.h
@@ -76,13 +76,14 @@ public:
// t=0 means it's at the start of the command's chunk, t=1 it's at the end
struct path_lineto
{
- path_lineto(bool m, Geom::Point pp) : isMoveTo(m), p(pp), piece(-1), t(0) {}
- path_lineto(bool m, Geom::Point pp, int pie, double tt) : isMoveTo(m), p(pp), piece(pie), t(tt) {}
+ path_lineto(bool m, Geom::Point pp) : isMoveTo(m), p(pp), piece(-1), t(0), closed(false) {}
+ path_lineto(bool m, Geom::Point pp, int pie, double tt) : isMoveTo(m), p(pp), piece(pie), t(tt), closed(false) {}
int isMoveTo;
Geom::Point p;
int piece;
double t;
+ bool closed; // true if subpath is closed (this point is the last point of a closed subpath)
};
std::vector<path_lineto> pts;