Trivial cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36885 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-12-14 23:18:48 +00:00
parent d1e0a0e4ed
commit 807fc94597

View File

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