* 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/branches/BRANCH_1_6_X@33205 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-01-24 17:35:32 +00:00
parent 254a3f9650
commit 0a7df344a3
2 changed files with 5 additions and 1 deletions

View File

@ -1272,7 +1272,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;
}
}

View File

@ -115,6 +115,9 @@ What's new
* USER INTERFACE
- Fix crash when performing word-replace while the cursor has a selection
in mathed (bug 6437).
- While in ERT, disable non-functional sub- and superscript functions that
crashed LyX (bug 6459).