diff --git a/aegisub/frame_main_events.cpp b/aegisub/frame_main_events.cpp index 9833f9c47..f3afbd065 100644 --- a/aegisub/frame_main_events.cpp +++ b/aegisub/frame_main_events.cpp @@ -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; }