mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
ff8ac45920
commit
058c815515
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user