fixes #0003122: FC 0.17 crashes when a sketched located outside a body object
This commit is contained in:
@@ -859,7 +859,10 @@ void prepareProfileBased(Gui::Command* cmd, const std::string& which,
|
||||
auto* pcActiveBody = PartDesignGui::getBody(false);
|
||||
if (pcActiveBody && !bNoSketchWasSelected && ext) {
|
||||
|
||||
auto* pcActivePart = PartDesignGui::getPartFor(pcActiveBody, false);
|
||||
auto* pcActivePart = PartDesignGui::getPartFor(pcActiveBody, true);
|
||||
// getPartFor() already has reported an error
|
||||
if (!pcActivePart)
|
||||
return;
|
||||
|
||||
QDialog* dia = new QDialog;
|
||||
Ui_Dialog dlg;
|
||||
|
||||
Reference in New Issue
Block a user