Fix transform feature crash on apply

-Redundant "reset edit" and command commit removed
-Redundant apply call removed
This commit is contained in:
Stefan Tröger
2016-01-03 21:32:31 +01:00
parent 7609c6e8c1
commit 6b7b2176fb
6 changed files with 3 additions and 43 deletions

View File

@@ -233,11 +233,6 @@ void TaskScaledParameters::apply()
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Factor = %f",name.c_str(), getFactor());
ui->spinOccurrences->apply();
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.recompute()");
if (!TransformedView->getObject()->isValid())
throw Base::Exception(TransformedView->getObject()->getStatusString());
Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().resetEdit()");
Gui::Command::commitCommand();
}
//**************************************************************************