diff --git a/aegisub/src/audio_timing_dialogue.cpp b/aegisub/src/audio_timing_dialogue.cpp index 990848fb3..4bce7991c 100644 --- a/aegisub/src/audio_timing_dialogue.cpp +++ b/aegisub/src/audio_timing_dialogue.cpp @@ -586,7 +586,8 @@ void AudioTimingControllerDialogue::RegenerateInactiveLines() std::list::iterator prev = current_line; while (--prev != context->ass->Line.begin() && !predicate(*prev)) ; - AddInactiveMarkers(static_cast(*prev)); + if (prev != context->ass->Line.begin()) + AddInactiveMarkers(static_cast(*prev)); if (mode == 2) {