Commit ba409db3 authored by Albert Astals Cid's avatar Albert Astals Cid

Merge xpdf 3.00 -> 3.01 changes in SplashPath.* files

parent 3ea00e85
......@@ -148,7 +148,8 @@ SplashError SplashPath::close() {
if (noCurrentPoint()) {
return splashErrNoCurPt;
}
if (pts[length - 1].x != pts[curSubpath].x ||
if (curSubpath == length - 1 ||
pts[length - 1].x != pts[curSubpath].x ||
pts[length - 1].y != pts[curSubpath].y) {
lineTo(pts[curSubpath].x, pts[curSubpath].y);
}
......
......@@ -82,6 +82,11 @@ public:
// Add (<dx>, <dy>) to every point on this path.
void offset(SplashCoord dx, SplashCoord dy);
// Get the points on the path.
int getLength() { return length; }
void getPoint(int i, double *x, double *y, Guchar *f)
{ *x = pts[i].x; *y = pts[i].y; *f = flags[i]; }
// Get the current point.
GBool getCurPt(SplashCoord *x, SplashCoord *y);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment