From 3bb20a93226c50af4f2cc83799493fc89954dcf2 Mon Sep 17 00:00:00 2001 From: kreso-t Date: Tue, 23 Jul 2019 23:07:34 +0200 Subject: [PATCH] PathAdaptive: bugfix fix for "path to nowhere" that occurs on some enviroments --- src/Mod/Path/libarea/Adaptive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/libarea/Adaptive.cpp b/src/Mod/Path/libarea/Adaptive.cpp index adb0389020..c004e151be 100644 --- a/src/Mod/Path/libarea/Adaptive.cpp +++ b/src/Mod/Path/libarea/Adaptive.cpp @@ -620,7 +620,7 @@ void SmoothPaths(Paths &paths, double stepSize, long pointCount, long iterations points.push_back(pair(i, pt)); continue; } - const auto &back=points.back(); + const auto back=points.back(); const IntPoint & lastPt = back.second;