do not use doCommand without using format string, add overloaded method of runCommand
This commit is contained in:
@@ -171,7 +171,7 @@ void CmdApproxPlane::activated(int iMsg)
|
||||
<< "Base.Rotation(" << q0 << "," << q1 << "," << q2 << "," << q3 << "))" << std::endl;
|
||||
|
||||
openCommand("Fit plane");
|
||||
doCommand(Gui::Command::Doc, str.str().c_str());
|
||||
runCommand(Gui::Command::Doc, str.str().c_str());
|
||||
commitCommand();
|
||||
updateActive();
|
||||
}
|
||||
@@ -251,7 +251,7 @@ void CmdViewTriangulation::activated(int iMsg)
|
||||
.arg(document)
|
||||
.arg(object)
|
||||
;
|
||||
doCommand(Doc, command.toLatin1());
|
||||
runCommand(Doc, command.toLatin1());
|
||||
}
|
||||
|
||||
commitCommand();
|
||||
|
||||
@@ -165,7 +165,7 @@ bool FitBSplineSurfaceWidget::accept()
|
||||
Gui::WaitCursor wc;
|
||||
Gui::Command::addModule(Gui::Command::App, "ReverseEngineering");
|
||||
Gui::Command::openCommand("Fit B-Spline");
|
||||
Gui::Command::doCommand(Gui::Command::Doc, command.toLatin1());
|
||||
Gui::Command::runCommand(Gui::Command::Doc, command.toLatin1());
|
||||
Gui::Command::commitCommand();
|
||||
Gui::Command::updateActive();
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ bool PoissonWidget::accept()
|
||||
Gui::WaitCursor wc;
|
||||
Gui::Command::addModule(Gui::Command::App, "ReverseEngineering");
|
||||
Gui::Command::openCommand("Poisson reconstruction");
|
||||
Gui::Command::doCommand(Gui::Command::Doc, command.toLatin1());
|
||||
Gui::Command::runCommand(Gui::Command::Doc, command.toLatin1());
|
||||
Gui::Command::commitCommand();
|
||||
Gui::Command::updateActive();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user