Fix bogus inactive line markers for the previous line when the first dialogue line is active

Originally committed to SVN as r6291.
This commit is contained in:
Thomas Goyne 2012-01-13 20:59:48 +00:00
parent 37cb9d0548
commit 3ec9514636

View file

@ -586,7 +586,8 @@ void AudioTimingControllerDialogue::RegenerateInactiveLines()
std::list<AssEntry*>::iterator prev = current_line; std::list<AssEntry*>::iterator prev = current_line;
while (--prev != context->ass->Line.begin() && !predicate(*prev)) ; while (--prev != context->ass->Line.begin() && !predicate(*prev)) ;
AddInactiveMarkers(static_cast<AssDialogue*>(*prev)); if (prev != context->ass->Line.begin())
AddInactiveMarkers(static_cast<AssDialogue*>(*prev));
if (mode == 2) if (mode == 2)
{ {