+ fixes #0001838: When In Sketcher Make It Difficult To Mistakenly Delete A Feature

This commit is contained in:
wmayer
2014-12-25 22:43:09 +01:00
parent 10e786a756
commit af71d87f26
2 changed files with 57 additions and 37 deletions

View File

@@ -4497,10 +4497,7 @@ Sketcher::SketchObject *ViewProviderSketch::getSketchObject(void) const
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();
std::vector<std::string> SubNames = subList;
Gui::Selection().clearSelection();
resetPreselectPoint();