mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
* BufferView.cpp:
- Fix crash when performing word-replace while the cursor has a selection in mathed (bug 6437) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33204 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5adf922939
commit
ee9a70acbe
@ -1481,7 +1481,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
|
||||
DocIterator end = cur.selectionEnd();
|
||||
if (beg.pit() == end.pit()) {
|
||||
for (pos_type p = beg.pos() ; p < end.pos() ; ++p) {
|
||||
if (cur.paragraph().isDeleted(p))
|
||||
if (!cur.inMathed()
|
||||
&& cur.paragraph().isDeleted(p))
|
||||
has_deleted = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user