diff --git a/src/Mod/Part/Gui/TaskLoft.cpp b/src/Mod/Part/Gui/TaskLoft.cpp index 7a6f22f9b..aed8dd911 100644 --- a/src/Mod/Part/Gui/TaskLoft.cpp +++ b/src/Mod/Part/Gui/TaskLoft.cpp @@ -45,19 +45,19 @@ using namespace PartGui; - -class LoftWidget::Private -{ -public: + +class LoftWidget::Private +{ +public: Ui_TaskLoft ui; std::string document; Private() - { - } - ~Private() - { - } -}; + { + } + ~Private() + { + } +}; /* TRANSLATOR PartGui::LoftWidget */ @@ -125,7 +125,7 @@ bool LoftWidget::accept() int count = d->ui.treeWidgetLoft->topLevelItemCount(); if (count < 2) { - QMessageBox::critical(this, tr("Too few elements"), tr("At least two vertices or wires are rquired.")); + QMessageBox::critical(this, tr("Too few elements"), tr("At least two vertices or wires are required.")); return false; } for (int i=0; igetDocument(d->document.c_str()); if (!doc) throw Base::Exception("Document doesn't exist anymore"); - doc->openCommand("Loft"); - Gui::Application::Instance->runPythonCode((const char*)cmd.toAscii(), false, false); - doc->commitCommand(); - doc->getDocument()->recompute(); - } - catch (const Base::Exception& e) { - Base::Console().Error("%s\n", e.what()); - return false; - } + doc->openCommand("Loft"); + Gui::Application::Instance->runPythonCode((const char*)cmd.toAscii(), false, false); + doc->commitCommand(); + doc->getDocument()->recompute(); + } + catch (const Base::Exception& e) { + Base::Console().Error("%s\n", e.what()); + return false; + } return true; }