From ee9a70acbe2f1f92b16ff1e532b5b3686b5b494f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 24 Jan 2010 17:35:10 +0000 Subject: [PATCH] * 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 --- src/BufferView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index e21eddffe6..330daa786f 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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; } }