Show status of branches even when inset is closed

This commit is contained in:
Jean-Marc Lasgouttes 2012-11-20 23:38:38 +01:00
parent 52af78aa0c
commit 7ec2721d18

View File

@ -106,11 +106,10 @@ docstring const InsetBranch::buttonLabel(BufferView const & bv) const
docstring symb = docstring(1, char_type(master_selected ? 0x2714 : 0x2716)); docstring symb = docstring(1, char_type(master_selected ? 0x2714 : 0x2716));
if (inchild && master_selected != child_selected) if (inchild && master_selected != child_selected)
symb += char_type(child_selected ? 0x2714 : 0x2716); symb += char_type(child_selected ? 0x2714 : 0x2716);
s = symb + s;
if (decoration() == InsetLayout::CLASSIC) if (decoration() == InsetLayout::CLASSIC)
return isOpen(bv) ? s : getNewLabel(s); return symb + (isOpen(bv) ? s : getNewLabel(s));
else else
return params_.branch + ": " + getNewLabel(s); return symb + params_.branch + ": " + getNewLabel(s);
} }