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.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37197 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-01-12 23:22:06 +00:00
parent 874e867953
commit 1ff710d0b6

View 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);
}