Fix duplication of source syllables when linking in the kanji timer

Originally committed to SVN as r6522.
This commit is contained in:
Thomas Goyne 2012-02-28 01:23:07 +00:00
parent 0d703cff69
commit 24fbf25882
1 changed files with 1 additions and 0 deletions

View File

@ -593,6 +593,7 @@ bool KaraokeLineMatchDisplay::AcceptMatch()
assert(source_sel_length <= unmatched_source.size()); assert(source_sel_length <= unmatched_source.size());
copy(unmatched_source.begin(), unmatched_source.begin() + source_sel_length, back_inserter(match.src)); copy(unmatched_source.begin(), unmatched_source.begin() + source_sel_length, back_inserter(match.src));
unmatched_source.erase(unmatched_source.begin(), unmatched_source.begin() + source_sel_length);
source_sel_length = 0; source_sel_length = 0;
assert(destination_sel_length <= unmatched_destination.size()); assert(destination_sel_length <= unmatched_destination.size());