]> git.lyx.org Git - lyx.git/commitdiff
More wrong update fixes when we work inside an InsetTexts LyXText (fix #182).
authorJürgen Vigna <jug@sad.it>
Mon, 11 Mar 2002 15:25:36 +0000 (15:25 +0000)
committerJürgen Vigna <jug@sad.it>
Mon, 11 Mar 2002 15:25:36 +0000 (15:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3712 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/ChangeLog

index 84152ccb47041b363c2642efe7a77fbe095c7659..ee132148100d2e7969fd82fa96ccc8c4c58ca626 100644 (file)
@@ -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();
index 0ef0c207f953796011f5284fdef8c33487d9932c..9d12da17fb4c0bc169cad5c55baa3357c6e01692 100644 (file)
@@ -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  <a.leeming@ic.ac.uk>