From 807fc945971938d24d57d16f235d63cb47914a3e Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 14 Dec 2010 23:18:48 +0000 Subject: [PATCH] Trivial cleanup. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36885 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCollapsable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2