From 3ec9514636dd19f772b20d447a2e0614a486e017 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 13 Jan 2012 20:59:48 +0000 Subject: [PATCH] Fix bogus inactive line markers for the previous line when the first dialogue line is active Originally committed to SVN as r6291. --- aegisub/src/audio_timing_dialogue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {