Fix a couple of issues with macro recording

This commit is contained in:
wmayer
2012-12-13 15:02:15 +01:00
parent 0517aa2afa
commit 268805fd58
6 changed files with 71 additions and 54 deletions

View File

@@ -416,7 +416,7 @@ void Command::doCommand(DoCmd_Type eType,const char* sCmd,...)
if (eType == Gui)
Gui::Application::Instance->macroManager()->addLine(MacroManager::Gui,format);
else
Gui::Application::Instance->macroManager()->addLine(MacroManager::Base,format);
Gui::Application::Instance->macroManager()->addLine(MacroManager::App,format);
try {
Base::Interpreter().runString(format);
@@ -439,7 +439,7 @@ void Command::runCommand(DoCmd_Type eType,const char* sCmd)
if (eType == Gui)
Gui::Application::Instance->macroManager()->addLine(MacroManager::Gui,sCmd);
else
Gui::Application::Instance->macroManager()->addLine(MacroManager::Base,sCmd);
Gui::Application::Instance->macroManager()->addLine(MacroManager::App,sCmd);
Base::Interpreter().runString(sCmd);
}
@@ -476,7 +476,7 @@ const std::string Command::strToPython(const char* Str)
void Command::updateActive(void)
{
WaitCursor wc;
doCommand(Gui,"App.ActiveDocument.recompute()");
doCommand(App,"App.ActiveDocument.recompute()");
}
bool Command::isActiveObjectValid(void)