From: Jürgen Vigna Date: Fri, 12 Apr 2002 09:22:18 +0000 (+0000) Subject: Update paragraph dialog on an insetUnlock. X-Git-Tag: 1.6.10~19425 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0dd2eb7eddf3559dc162e01c4a2eb64147ae0659;p=features.git Update paragraph dialog on an insetUnlock. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3981 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView2.C b/src/BufferView2.C index 90f7e3e9fb..15753ac829 100644 --- a/src/BufferView2.C +++ b/src/BufferView2.C @@ -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; diff --git a/src/ChangeLog b/src/ChangeLog index d29b664038..3e514a02d5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2002-04-12 Juergen Vigna + * 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