mirror of https://github.com/odrling/Aegisub
Fix duplication of source syllables when linking in the kanji timer
Originally committed to SVN as r6522.
This commit is contained in:
parent
0d703cff69
commit
24fbf25882
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue