Skip to content

Commit ef2156d

Browse files
FlachyJoechennes
authored andcommitted
Fix uptoshape crash when selecting a face without assigned shape
1 parent f111d46 commit ef2156d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Mod/PartDesign/Gui/TaskExtrudeParameters.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,10 @@ void TaskExtrudeParameters::selectedShapeFace(const Gui::SelectionChanges& msg)
397397
}
398398

399399
auto base = static_cast<Part::Feature*>(extrude->UpToShape.getValue());
400-
401-
if (strcmp(msg.pObjectName, base->getNameInDocument()) != 0) {
400+
if (!base){
401+
base = static_cast<Part::Feature*>(extrude);
402+
}
403+
else if (strcmp(msg.pObjectName, base->getNameInDocument()) != 0) {
402404
return;
403405
}
404406

0 commit comments

Comments
 (0)