Fix off-by-one error in logic for when to reannounce karaoke style ranges

Originally committed to SVN as r6319.
This commit is contained in:
Thomas Goyne 2012-01-20 01:49:41 +00:00
parent a249cfcc35
commit 8e1ffb7898

View file

@ -313,7 +313,7 @@ void AudioTimingControllerKaraoke::OnMarkerDrag(AudioMarker *m, int64_t new_posi
size_t syl = marker - &markers.front() + 1;
kara->SetStartTime(syl, ToMS(new_position));
if (syl == cur_syl || syl + 1 == cur_syl) {
if (syl == cur_syl || syl == cur_syl + 1) {
AnnounceUpdatedPrimaryRange();
AnnounceUpdatedStyleRanges();
}