forked from mia/Aegisub
Only go back one line rather than two
This commit is contained in:
parent
80c9f67ce8
commit
bfc7f56e20
1 changed files with 2 additions and 2 deletions
|
@ -675,7 +675,7 @@ void DialogKanjiTimer::TryAutoMatch()
|
||||||
|
|
||||||
template<typename Iterator>
|
template<typename Iterator>
|
||||||
static AssEntry *find_next(Iterator from, Iterator to, std::string const& style_name) {
|
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<AssDialogue*>(&*from);
|
AssDialogue *dlg = dynamic_cast<AssDialogue*>(&*from);
|
||||||
if (dlg && dlg->Style == style_name)
|
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)
|
AssEntry *DialogKanjiTimer::FindNextStyleMatch(AssEntry *search_from, const std::string &search_style)
|
||||||
{
|
{
|
||||||
if (!search_from) return search_from;
|
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)
|
AssEntry *DialogKanjiTimer::FindPrevStyleMatch(AssEntry *search_from, const std::string &search_style)
|
||||||
|
|
Loading…
Reference in a new issue