mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Trivial cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36885 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d1e0a0e4ed
commit
807fc94597
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user