Skip to content

Commit

Permalink
fixes #3122: FC 0.17 crashes when a sketched located outside a body o…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
wwmayer committed Jul 16, 2017
1 parent 3d33c30 commit 7cfc084
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/PartDesign/Gui/Command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7cfc084

Please sign in to comment.