mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
Do not substract cursors pos from two different cells (fix assertion while doing adv search)
Fixes: #7944.
This commit is contained in:
parent
5ff8a01cb6
commit
ad6f96bf48
@ -1377,7 +1377,8 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
|
||||
DocIterator sel_beg = cur.selectionBegin();
|
||||
DocIterator sel_end = cur.selectionEnd();
|
||||
if (&sel_beg.inset() != &sel_end.inset()
|
||||
|| sel_beg.pit() != sel_end.pit())
|
||||
|| sel_beg.pit() != sel_end.pit()
|
||||
|| sel_beg.idx() != sel_end.idx())
|
||||
return;
|
||||
int sel_len = sel_end.pos() - sel_beg.pos();
|
||||
LYXERR(Debug::FIND, "sel_beg: " << sel_beg << ", sel_end: " << sel_end
|
||||
|
Loading…
Reference in New Issue
Block a user