Author: rgheck
Date: Thu Jan 13 00:22:06 2011
New Revision: 37197
URL: http://www.lyx.org/trac/changeset/37197

Log:
Add comment.
The reason we don't need to do what I say we don't need to do is that a
given counter doesn't really care about whether it has a master. It's
when the master is stepped that we check for which other ones to reset.
So if the master doesn't exist, nothing will happen, anyway.

Modified:
   lyx-devel/trunk/src/Counters.cpp

Modified: lyx-devel/trunk/src/Counters.cpp
==============================================================================
--- lyx-devel/trunk/src/Counters.cpp    Thu Jan 13 00:20:07 2011        (r37196)
+++ lyx-devel/trunk/src/Counters.cpp    Thu Jan 13 00:22:06 2011        (r37197)
@@ -296,6 +296,9 @@
 
 bool Counters::remove(docstring const & cnt)
 {
+       // NOTE It might be worth trying to remove this counter
+       // as "master" for any counter that declares it, but we
+       // don't actually need to do so.
        return counterList_.erase(cnt);
 }
 

Reply via email to