]> git.lyx.org Git - features.git/commitdiff
Add comment.
authorRichard Heck <rgheck@comcast.net>
Wed, 12 Jan 2011 23:22:06 +0000 (23:22 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 12 Jan 2011 23:22:06 +0000 (23:22 +0000)
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.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37197 a592a061-630c-0410-9148-cb99ea01b6c8

src/Counters.cpp

index 1e865c73d4b3dd4859a8ef8915c2d36f83cffeff..2c661eda4864576a8a5fe8230bc4b2a3ef0258cf 100644 (file)
@@ -296,6 +296,9 @@ void Counters::reset(docstring const & match)
 
 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);
 }