Fix order of return value

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36299 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-11-14 23:23:20 +00:00
parent ff8ac45920
commit 058c815515

View File

@ -236,7 +236,7 @@ pair<bool, int> replaceOne(BufferView * bv, docstring searchstr,
// empty search string // empty search string
if (!cur.inTexted()) if (!cur.inTexted())
// bail in math // bail in math
return pair<int, bool>(0, false); return pair<bool, int>(false, 0);
// select current word and treat it as the search string // select current word and treat it as the search string
cur.innerText()->selectWord(cur, WHOLE_WORD); cur.innerText()->selectWord(cur, WHOLE_WORD);
searchstr = cur.selectionAsString(false); searchstr = cur.selectionAsString(false);