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 16433939e1
commit 99ef8e756d
6 changed files with 3 additions and 43 deletions

View File

@@ -396,12 +396,6 @@ void TaskLinearPatternParameters::apply()
ui->spinLength->apply();
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();
}
//**************************************************************************
@@ -417,14 +411,4 @@ TaskDlgLinearPatternParameters::TaskDlgLinearPatternParameters(ViewProviderLinea
Content.push_back(parameter);
}
//==== calls from the TaskView ===============================================================
bool TaskDlgLinearPatternParameters::accept()
{
parameter->apply();
return TaskDlgTransformedParameters::accept();
}
#include "moc_TaskLinearPatternParameters.cpp"