mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
producesOutput() should not be redeclared as producesOutput(bool).
This commit is contained in:
parent
76d0c6759f
commit
5018e1077b
@ -77,7 +77,8 @@ docstring InsetBranch::toolTip(BufferView const & bv, int, int) const
|
||||
|
||||
docstring const masteron = producesOutput() ?
|
||||
_("on") : _("off");
|
||||
docstring const childon = producesOutput(true) ?
|
||||
docstring const childon =
|
||||
(isBranchSelected(true) != params_.inverted) ?
|
||||
_("on") : _("off");
|
||||
docstring const onoff = (masteron == childon) ?
|
||||
masteron :
|
||||
@ -105,7 +106,7 @@ docstring const InsetBranch::buttonLabel(BufferView const &) const
|
||||
bool const inchild = buffer().params().branchlist().find(params_.branch);
|
||||
|
||||
bool const master_selected = producesOutput();
|
||||
bool const child_selected = producesOutput(true);
|
||||
bool const child_selected = isBranchSelected(true) != params_.inverted;
|
||||
|
||||
docstring symb = docstring(1, master_selected ? tick : cross);
|
||||
if (inchild && master_selected != child_selected)
|
||||
@ -284,9 +285,9 @@ bool InsetBranch::isBranchSelected(bool const child) const
|
||||
}
|
||||
|
||||
|
||||
bool InsetBranch::producesOutput(bool const child) const
|
||||
bool InsetBranch::producesOutput() const
|
||||
{
|
||||
return isBranchSelected(child) != params_.inverted;
|
||||
return isBranchSelected() != params_.inverted;
|
||||
}
|
||||
|
||||
|
||||
|
@ -103,7 +103,7 @@ private:
|
||||
* Note that Branch insets are considered part of the
|
||||
* document when they are selected XOR inverted.
|
||||
*/
|
||||
bool producesOutput(bool const child = false) const;
|
||||
bool producesOutput() const;
|
||||
///
|
||||
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user