diff options
author | Norbert Preining <norbert@preining.info> | 2019-12-10 03:01:52 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-12-10 03:01:52 +0000 |
commit | 0174af21196c197a5b3672c87bc6f7a614fddd7d (patch) | |
tree | 00b155441be0755336593a3a2170f7531a055e99 /dviware/dvisvgm/src/PathClipper.hpp | |
parent | d1cebb67c836ee110bdbd3aeb622675df479c993 (diff) |
CTAN sync 201912100301
Diffstat (limited to 'dviware/dvisvgm/src/PathClipper.hpp')
-rw-r--r-- | dviware/dvisvgm/src/PathClipper.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dviware/dvisvgm/src/PathClipper.hpp b/dviware/dvisvgm/src/PathClipper.hpp index 09c904bfd4..fb375db35f 100644 --- a/dviware/dvisvgm/src/PathClipper.hpp +++ b/dviware/dvisvgm/src/PathClipper.hpp @@ -31,25 +31,22 @@ using ClipperLib::IntPoint; -class PathClipper -{ +class PathClipper { public: using CurvedPath = GraphicsPath<double>; public: - PathClipper () : _numLines(0) {} void intersect (const CurvedPath &p1, const CurvedPath &p2, CurvedPath &result); protected: void flatten (const CurvedPath &gp, ClipperLib::Paths &polygons); -// void divide (IntPoint &p1, IntPoint &p2, IntPoint &ip); void reconstruct (const ClipperLib::Path &polygon, CurvedPath &path); void reconstruct (const ClipperLib::Paths &polygons, CurvedPath &path); static void callback (IntPoint &e1bot, IntPoint &e1top, IntPoint &e2bot, IntPoint &e2top, IntPoint &ip); private: std::vector<Bezier> _curves; - int _numLines; ///< negative number of straight line segments in path been processed + int _numLines=0; ///< negative number of straight line segments in path been processed }; #endif |