]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.cpp
Fix compilation warning in DepTable.cpp
[lyx.git] / src / Counters.cpp
index 0b17aa1b9b84eac8b6d7f94d16cf5bdbf71af9bc..75c891128efa90777a0ba9a04a7164e5e14232aa 100644 (file)
@@ -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);