mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
In r30560, the setLayout function was removed from InsetCollapsable. This function also set the buttonLabel for the inset. After removing the setLayout calls in this place, the button label is not initialized for Notes, Boxes and Phantoms.
This commit restores the behaviour as it was, such that the labels are initialized again. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30677 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e847919f2c
commit
77d67595fd
@ -233,6 +233,9 @@ static bool doInsertInset(Cursor & cur, Text * text,
|
||||
if (!inset)
|
||||
return false;
|
||||
|
||||
if (InsetCollapsable * ci = inset->asInsetCollapsable())
|
||||
ci->setButtonLabel();
|
||||
|
||||
cur.recordUndo();
|
||||
if (cmd.action == LFUN_INDEX_INSERT) {
|
||||
docstring ds = subst(text->getStringToIndex(cur), '\n', ' ');
|
||||
|
Loading…
Reference in New Issue
Block a user