We only need to set this once.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35641 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-10-13 18:58:12 +00:00
parent e9cf7aabcb
commit 03046ddfb0

View File

@ -1513,9 +1513,10 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
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.inMathed() if (!cur.inMathed() && cur.paragraph().isDeleted(p)) {
&& cur.paragraph().isDeleted(p))
has_deleted = true; has_deleted = true;
break;
}
} }
} }
} }