summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/src/PathClipper.hpp
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2019-12-10 06:22:32 +0000
committerNorbert Preining <preining@logic.at>2019-12-10 06:22:32 +0000
commit2bc8de74125743b8e3fb84e02f33c65bf9959e82 (patch)
treecb9ec3e069054ad5a2463a83e7013ae97c9701ef /Build/source/texk/dvisvgm/dvisvgm-src/src/PathClipper.hpp
parent7f85e4a77221267523ef1738a61320991bdbc000 (diff)
dvisvgm 2.8.2 (from Martin Gieseking)
git-svn-id: svn://tug.org/texlive/trunk@53077 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/PathClipper.hpp')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/src/PathClipper.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/PathClipper.hpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/PathClipper.hpp
index 09c904bfd49..fb375db35fa 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/src/PathClipper.hpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/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