From 491cb5ffcbbe0851dbcf889308ad3e137911be07 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 27 Apr 2024 00:00:38 +0200 Subject: [PATCH] PD: Fixes crash if sub-element name of reference axis is empty This fixes #13656 --- src/Mod/PartDesign/App/FeatureSketchBased.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.cpp b/src/Mod/PartDesign/App/FeatureSketchBased.cpp index dd1fc773ef..ebf18c3402 100644 --- a/src/Mod/PartDesign/App/FeatureSketchBased.cpp +++ b/src/Mod/PartDesign/App/FeatureSketchBased.cpp @@ -1351,8 +1351,9 @@ void ProfileBased::getAxis(const App::DocumentObject * pcReferenceAxis, const st }; dir = Base::Vector3d(0, 0, 0); // If unchanged signals that no valid axis was found - if (!pcReferenceAxis) + if (!pcReferenceAxis || subReferenceAxis.empty()) { return; + } App::DocumentObject* profile = Profile.getValue(); gp_Pln sketchplane;