From 107831e0a7769b4f09e2f8fdb0f8b59d100114dd Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 24 Mar 2020 15:15:25 +0100 Subject: [PATCH] PartDesign: [skip ci] fixes #0004254: Crash when canceling duplicate sketch in PartDesign --- src/Mod/PartDesign/Gui/CommandBody.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/CommandBody.cpp b/src/Mod/PartDesign/Gui/CommandBody.cpp index 00983f96b405..febbb73f90e6 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();