+ fixes #0001480: Crash when editing sketch with Pad hidden
This commit is contained in:
@@ -3483,6 +3483,8 @@ bool ViewProviderSketch::onDelete(const std::vector<std::string> &subList)
|
||||
{
|
||||
if (edit) {
|
||||
std::vector<Gui::SelectionObject> selection = Gui::Selection().getSelectionEx();
|
||||
if (selection.empty())
|
||||
return false;
|
||||
const std::vector<std::string> &SubNames = selection[0].getSubNames();
|
||||
|
||||
Gui::Selection().clearSelection();
|
||||
|
||||
Reference in New Issue
Block a user