From 0ae3d0216a43284150f034eeba444c1b39dfcdf7 Mon Sep 17 00:00:00 2001 From: jean-pierre charras <jp.charras@wanadoo.fr> Date: Sun, 16 Feb 2020 09:47:33 +0100 Subject: [PATCH] Fix a compil warning --- libs/kimath/src/geometry/shape_poly_set.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/kimath/src/geometry/shape_poly_set.cpp b/libs/kimath/src/geometry/shape_poly_set.cpp index 9798ac693e..9a463d6536 100644 --- a/libs/kimath/src/geometry/shape_poly_set.cpp +++ b/libs/kimath/src/geometry/shape_poly_set.cpp @@ -538,9 +538,9 @@ void SHAPE_POLY_SET::Inflate( int aAmount, int aCircleSegmentsCount, // N.B. see the Clipper documentation for jtSquare/jtMiter/jtRound. They are poorly named // and are not what you'd think they are. // http://www.angusj.com/delphi/clipper/documentation/Docs/Units/ClipperLib/Types/JoinType.htm - JoinType joinType; // The way corners are offsetted - double miterLimit = 2.0; // Smaller value when using jtMiter for joinType - JoinType miterFallback; + JoinType joinType = jtRound; // The way corners are offsetted + double miterLimit = 2.0; // Smaller value when using jtMiter for joinType + JoinType miterFallback = jtSquare; switch( aCornerStrategy ) {