mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Update paragraph dialog on an insetUnlock.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3981 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9b6fc7b6c9
commit
0dd2eb7edd
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user