* 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:
Jürgen Spitzmüller 2010-01-24 17:35:10 +00:00
parent 5adf922939
commit ee9a70acbe

View File

@ -1481,7 +1481,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
DocIterator end = cur.selectionEnd(); DocIterator end = cur.selectionEnd();
if (beg.pit() == end.pit()) { if (beg.pit() == end.pit()) {
for (pos_type p = beg.pos() ; p < end.pos() ; ++p) { 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; has_deleted = true;
} }
} }