diff --git a/src/Mod/Path/Gui/ViewProviderPath.cpp b/src/Mod/Path/Gui/ViewProviderPath.cpp index 74e1df690..3949bbecb 100644 --- a/src/Mod/Path/Gui/ViewProviderPath.cpp +++ b/src/Mod/Path/Gui/ViewProviderPath.cpp @@ -230,10 +230,11 @@ void ViewProviderPath::updateData(const App::Property* prop) if (prop == &pcPathObj->Path) { + pcLineCoords->point.deleteValues(0); + pcMarkerCoords->point.deleteValues(0); + const Toolpath &tp = pcPathObj->Path.getValue(); if(tp.getSize()==0) { - pcLineCoords->point.deleteValues(0); - pcMarkerCoords->point.deleteValues(0); return; }