X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCounters.cpp;h=2daac53224dca0a4f26e6850d3b7d7a228e6c1be;hb=bed546d6f6aab7c32ef51d61edd120e18089da53;hp=0b17aa1b9b84eac8b6d7f94d16cf5bdbf71af9bc;hpb=72e038f03e8640494c487f54a7f85031a16c2177;p=lyx.git diff --git a/src/Counters.cpp b/src/Counters.cpp index 0b17aa1b9b..2daac53224 100644 --- a/src/Counters.cpp +++ b/src/Counters.cpp @@ -278,6 +278,18 @@ void Counters::resetSlaves(docstring const & ctr) } +void Counters::stepMaster(docstring const & ctr, UpdateType utype) +{ + CounterList::iterator it = counterList_.find(ctr); + if (it == counterList_.end()) { + lyxerr << "step: Counter does not exist: " + << to_utf8(ctr) << endl; + return; + } + step(it->second.master(), utype); +} + + void Counters::step(docstring const & ctr, UpdateType utype) { CounterList::iterator it = counterList_.find(ctr); @@ -470,7 +482,7 @@ docstring const fnsymbolCounter(int const n) }; } -} // namespace anon +} // namespace docstring Counters::labelItem(docstring const & ctr,