]> git.lyx.org Git - features.git/commitdiff
Trivial cleanup.
authorRichard Heck <rgheck@comcast.net>
Tue, 14 Dec 2010 23:18:48 +0000 (23:18 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 14 Dec 2010 23:18:48 +0000 (23:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36885 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCollapsable.cpp

index 9b3b1059b5d6c1362c86aa3efe3d63125ca1949e..a8a114f3a6481bab3fed4477fbd643c2c697682d 100644 (file)
@@ -583,9 +583,9 @@ void InsetCollapsable::setLabel(docstring const & l)
 
 docstring const InsetCollapsable::buttonLabel(BufferView const & bv) const
 {
-       docstring const label = labelstring_.empty() ? 
-               translateIfPossible(getLayout().labelstring()) : labelstring_;
        InsetLayout const & il = getLayout();
+       docstring const label = labelstring_.empty() ? 
+               translateIfPossible(il.labelstring()) : labelstring_;
        if (!il.contentaslabel() || geometry(bv) != ButtonOnly)
                return label;
        return getNewLabel(label);