From 77d67595fdbbbbbffa2b9d482473e39317655d3e Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 18 Jul 2009 19:35:27 +0000 Subject: [PATCH] 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 --- src/Text3.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Text3.cpp b/src/Text3.cpp index a6c597e3e2..83a6430608 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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', ' '); -- 2.39.5