]> git.lyx.org Git - features.git/commitdiff
In r30560, the setLayout function was removed from InsetCollapsable. This function...
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 18 Jul 2009 19:35:27 +0000 (19:35 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 18 Jul 2009 19:35:27 +0000 (19:35 +0000)
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

index a6c597e3e245957af6d2906dc36483460609e617..83a6430608f0adce2e1d947c6a8d681e46ad4e68 100644 (file)
@@ -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', ' ');