From 24fbf2588234f8b0de85001203f2392844000c8c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 28 Feb 2012 01:23:07 +0000 Subject: [PATCH] Fix duplication of source syllables when linking in the kanji timer Originally committed to SVN as r6522. --- aegisub/src/dialog_kara_timing_copy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/src/dialog_kara_timing_copy.cpp b/aegisub/src/dialog_kara_timing_copy.cpp index fd69a142b..b92e4e733 100644 --- a/aegisub/src/dialog_kara_timing_copy.cpp +++ b/aegisub/src/dialog_kara_timing_copy.cpp @@ -593,6 +593,7 @@ bool KaraokeLineMatchDisplay::AcceptMatch() assert(source_sel_length <= unmatched_source.size()); 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; assert(destination_sel_length <= unmatched_destination.size());