Fixed #307 with an ugly hack

Originally committed to SVN as r855.
This commit is contained in:
Niels Martin Hansen 2007-01-20 18:26:04 +00:00
parent 23ee01ff8f
commit ee8bf9274c

View file

@ -987,7 +987,9 @@ void FrameMain::OnAutomationMacro (wxCommandEvent &event) {
AssFile *oldtop = AssFile::top;
activeMacroItems[event.GetId()-Menu_Automation_Macro]->Process(SubsBox->ass, SubsBox->GetAbsoluteSelection(), SubsBox->GetFirstSelRow(), this);
// check if modifications were made and put on undo stack
AssFile::Popping = true; // HACK to avoid getting an additional undo point on stack
SubsBox->LoadFromAss(AssFile::top, true, true);
AssFile::Popping = false;
}