From 35f6a4fa72550f7da8da801204830a05da59e9df Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 24 Sep 2018 14:31:47 +0800 Subject: [PATCH] Path.Area: fix offset pocket mode --- src/Mod/Path/App/Area.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index decc85ab5b..6797cfd170 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -1955,6 +1955,8 @@ void Area::makeOffset(list > &areas, areas.pop_front(); else areas.pop_back(); + if(areas.empty()) + break; if(last_stepover && last_stepover>stepover) { offset -= stepover; stepover = last_stepover;