]> git.lyx.org Git - lyx.git/commitdiff
find: This change was not intended, amend e96a9d63294b
authorKornel Benko <kornel@lyx.org>
Sun, 25 Nov 2018 17:25:14 +0000 (18:25 +0100)
committerKornel Benko <kornel@lyx.org>
Sun, 25 Nov 2018 17:25:14 +0000 (18:25 +0100)
src/lyxfind.cpp

index f7df243408ea903556087b97be5e68ca9295dc9b..0bd647fff4a28f3388868af57afc56c86584cd85 100644 (file)
@@ -2406,7 +2406,7 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con
                else
                        result =  m[m.size() - close_wildcards].first - m[0].first;
 
-               size_t pos = m.position(0);
+               size_t pos = m.position(size_t(0));
                // Ignore last closing characters
                while (result > 0) {
                        if (str[pos+result-1] == '}')