]> git.lyx.org Git - features.git/commitdiff
Update paragraph dialog on an insetUnlock.
authorJürgen Vigna <jug@sad.it>
Fri, 12 Apr 2002 09:22:18 +0000 (09:22 +0000)
committerJürgen Vigna <jug@sad.it>
Fri, 12 Apr 2002 09:22:18 +0000 (09:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3981 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView2.C
src/ChangeLog

index 90f7e3e9fb4830a6960c99e99d628ad090ef2509..15753ac8291e8ab72394377345c9c097fea360c0 100644 (file)
@@ -26,6 +26,7 @@
 #include "iterators.h"
 
 #include "frontends/Alert.h"
+#include "frontends/Dialogs.h"
 
 #include "insets/insetcommand.h" //ChangeRefs
 #include "insets/inseterror.h"
@@ -609,10 +610,14 @@ int BufferView::unlockInset(UpdatableInset * inset)
                theLockingInset(0);
                // make sure we update the combo !
                owner()->setLayout(getLyXText()->cursor.par()->layout());
+               // Tell the paragraph dialog that we changed paragraph
+               owner()->getDialogs()->updateParagraph();
                finishUndo();
                return 0;
        } else if (inset && theLockingInset() &&
                   theLockingInset()->unlockInsetInInset(this, inset)) {
+               // Tell the paragraph dialog that we changed paragraph
+               owner()->getDialogs()->updateParagraph();
                // owner inset has updated the layout combo
                finishUndo();
                return 0;
index d29b6640389080496bdecd8d705fccf005c0278b..3e514a02d5a1fbb96e00e016d8bdc0a7108afbac 100644 (file)
@@ -1,5 +1,8 @@
 2002-04-12  Juergen Vigna  <jug@sad.it>
 
+       * BufferView2.C (unlockInset): update the paragraph layout on inset
+       unlock as we changed paragraph in such a case.
+
        * lyxfind.C (LyXFind): clear the former selection if not found!
 
        * text2.C (insertInset): freeze Undo after setUndo so that it is not