PD: Fixes crash if sub-element name of reference axis is empty

This fixes #13656
This commit is contained in:
wmayer
2024-04-27 00:00:38 +02:00
committed by wwmayer
parent 7961e82c66
commit 491cb5ffcb

View File

@@ -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;