]> git.lyx.org Git - lyx.git/commitdiff
* BufferView.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 24 Jan 2010 17:35:10 +0000 (17:35 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 24 Jan 2010 17:35:10 +0000 (17:35 +0000)
- 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

index e21eddffe62a5e4ef3cee109571a3a56c85de5a5..330daa786fadc0a7697dbd509f97d856b0c09ff9 100644 (file)
@@ -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;
                                }
                        }