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());