+ fixes #0001480: Crash when editing sketch with Pad hidden

This commit is contained in:
wmayer
2014-03-18 13:14:04 +01:00
parent 40ce4edcb1
commit aee30113fd

View File

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