parent
23ee01ff8f
commit
ee8bf9274c
1 changed files with 2 additions and 0 deletions
|
@ -987,7 +987,9 @@ void FrameMain::OnAutomationMacro (wxCommandEvent &event) {
|
||||||
AssFile *oldtop = AssFile::top;
|
AssFile *oldtop = AssFile::top;
|
||||||
activeMacroItems[event.GetId()-Menu_Automation_Macro]->Process(SubsBox->ass, SubsBox->GetAbsoluteSelection(), SubsBox->GetFirstSelRow(), this);
|
activeMacroItems[event.GetId()-Menu_Automation_Macro]->Process(SubsBox->ass, SubsBox->GetAbsoluteSelection(), SubsBox->GetFirstSelRow(), this);
|
||||||
// check if modifications were made and put on undo stack
|
// 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);
|
SubsBox->LoadFromAss(AssFile::top, true, true);
|
||||||
|
AssFile::Popping = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue