- if (!inmaster && inchild)
- s = _("Branch (child only): ") + params_.branch;
- else if (inmaster && !inchild)
- s = _("Branch (master only): ") + params_.branch;
- else if (!inmaster)
- s = _("Branch (undefined): ") + params_.branch;
- if (!params_.branch.empty()) {
- // FIXME UNICODE
- ColorCode c = lcolor.getFromLyXName(to_utf8(params_.branch));
- if (c == Color_none)
- s = _("Undef: ") + s;
- }
- bool const master_selected = isBranchSelected();
- bool const child_selected = isBranchSelected(true);
- docstring symb = docstring(1, char_type(master_selected ? 0x2714 : 0x2716));
+
+ bool const master_selected = producesOutput();
+ bool const child_selected = isBranchSelected(true) != params_.inverted;
+
+ docstring symb = docstring(1, master_selected ? tick : cross);