From: Jürgen Vigna Date: Mon, 11 Mar 2002 15:25:36 +0000 (+0000) Subject: More wrong update fixes when we work inside an InsetTexts LyXText (fix #182). X-Git-Tag: 1.6.10~19686 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=45ca3f0c3c7a4f25b51a4531f39a5baa2328acce;p=lyx.git More wrong update fixes when we work inside an InsetTexts LyXText (fix #182). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3712 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index 84152ccb47..ee13214810 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -1426,9 +1426,13 @@ void BufferView::Pimpl::moveCursorUpdate(bool selecting) lt->setSelection(bv_); if (lt->bv_owner) toggleToggle(); + else + updateInset(lt->inset_owner, false); + } + if (lt->bv_owner) { + update(lt, BufferView::SELECT|BufferView::FITCUR); + showCursor(); } - update(lt, BufferView::SELECT|BufferView::FITCUR); - showCursor(); /* ---> Everytime the cursor is moved, show the current font state. */ // should this too me moved out of this func? @@ -2255,7 +2259,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument) case LFUN_ENDSEL: { LyXText * lt = bv_->getLyXText(); - + update(lt, BufferView::SELECT|BufferView::FITCUR); lt->cursorEnd(bv_); finishUndo(); diff --git a/src/ChangeLog b/src/ChangeLog index 0ef0c207f9..9d12da17fb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,7 @@ * BufferView_pimpl.C (cursorPrevious): remove old cruft which is plainly wrong. (resizeCurrentBuffer): force also the insets to resize themselfes. + (moveCursorUpdate): fixed up for InsetText. 2002-03-08 Angus Leeming