From bfc7f56e20544ab81122d1293f282844b70e7710 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 15 Sep 2013 15:37:49 -0700 Subject: [PATCH] Only go back one line rather than two --- aegisub/src/dialog_kara_timing_copy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/dialog_kara_timing_copy.cpp b/aegisub/src/dialog_kara_timing_copy.cpp index 877e6bc40..d67c08223 100644 --- a/aegisub/src/dialog_kara_timing_copy.cpp +++ b/aegisub/src/dialog_kara_timing_copy.cpp @@ -675,7 +675,7 @@ void DialogKanjiTimer::TryAutoMatch() template static AssEntry *find_next(Iterator from, Iterator to, std::string const& style_name) { - for (++from; from != to; ++from) + for (; from != to; ++from) { AssDialogue *dlg = dynamic_cast(&*from); if (dlg && dlg->Style == style_name) @@ -688,7 +688,7 @@ static AssEntry *find_next(Iterator from, Iterator to, std::string const& style_ AssEntry *DialogKanjiTimer::FindNextStyleMatch(AssEntry *search_from, const std::string &search_style) { if (!search_from) return search_from; - return find_next(subs->Line.iterator_to(*search_from), subs->Line.end(), search_style); + return find_next(++subs->Line.iterator_to(*search_from), subs->Line.end(), search_style); } AssEntry *DialogKanjiTimer::FindPrevStyleMatch(AssEntry *search_from, const std::string &search_style)