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;