From: Richard Heck Date: Tue, 14 Dec 2010 23:18:48 +0000 (+0000) Subject: Trivial cleanup. X-Git-Tag: 2.0.0~1373 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=807fc945971938d24d57d16f235d63cb47914a3e;p=features.git Trivial cleanup. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36885 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index 9b3b1059b5..a8a114f3a6 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -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);