From 6e91d94236fca6db92d913d6074a1a4aded764ab Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 15 Oct 2011 17:31:23 +0000 Subject: [PATCH] + fix typo git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5031 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Part/Gui/TaskLoft.cpp | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/Mod/Part/Gui/TaskLoft.cpp b/src/Mod/Part/Gui/TaskLoft.cpp index 7a6f22f9b5..aed8dd911f 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; }