+ fix typo

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5031 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2011-10-15 17:31:23 +00:00
parent a85d7e073f
commit 6e91d94236

View File

@ -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; i<count; i++) {
@ -145,15 +145,15 @@ bool LoftWidget::accept()
Gui::Document* doc = Gui::Application::Instance->getDocument(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;
}