diff --git a/src/Mod/PartDesign/Gui/CommandBody.cpp b/src/Mod/PartDesign/Gui/CommandBody.cpp index 00983f96b4..febbb73f90 100644 --- a/src/Mod/PartDesign/Gui/CommandBody.cpp +++ b/src/Mod/PartDesign/Gui/CommandBody.cpp @@ -662,7 +662,8 @@ void CmdPartDesignDuplicateSelection::activated(int iMsg) } // Adjust visibility of features - FCMD_OBJ_SHOW(newFeatures.back()); + if (!newFeatures.empty()) + FCMD_OBJ_SHOW(newFeatures.back()); } updateActive();