diff options
Diffstat (limited to 'dviware/dvisvgm/src/PathClipper.cpp')
-rw-r--r-- | dviware/dvisvgm/src/PathClipper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dviware/dvisvgm/src/PathClipper.cpp b/dviware/dvisvgm/src/PathClipper.cpp index 1663e7ae36..f646289d25 100644 --- a/dviware/dvisvgm/src/PathClipper.cpp +++ b/dviware/dvisvgm/src/PathClipper.cpp @@ -49,7 +49,7 @@ inline DPair to_DPair (const IntPoint &p) { /** In order to flatten a curved path, all path segements are processed sequentially. * Depending on the type of the segment, one of the methods provided by this class * is called. */ -class FlattenActions : public CurvedPath::Actions { +class FlattenActions : public CurvedPath::IterationActions { public: FlattenActions (vector<Bezier> &curves, Polygons &polygons, int &numLines) : _polygons(polygons), _curves(curves), _numLines(numLines) {} @@ -73,7 +73,7 @@ class FlattenActions : public CurvedPath::Actions { _currentPoint = p; } - void conicto (const CurvedPath::Point &p1, const CurvedPath::Point &p2) override { + void quadto (const CurvedPath::Point &p1, const CurvedPath::Point &p2) override { Bezier bezier(_currentPoint, p1, p2); addCurvePoints(bezier); } @@ -206,7 +206,7 @@ static double division_ratio (const IntPoint &p1, const IntPoint &p2, const IntP /** Returns the label of point q that lies on the line between points p1 and p2. */ inline ZLabel division_label (const IntPoint &p1, const IntPoint &p2, const IntPoint &q) { - double t1, t2; + double t1=0, t2=0; double s=0; int32_t id = segment_id(p1, p2, t1, t2); if (id > 0) |