From: Richard Heck Date: Wed, 12 Jan 2011 23:22:06 +0000 (+0000) Subject: Add comment. X-Git-Tag: 2.0.0~1114 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1ff710d0b6c09cc3ffbb33842518d6b4b063a9ac;p=features.git 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 --- diff --git a/src/Counters.cpp b/src/Counters.cpp index 1e865c73d4..2c661eda48 100644 --- a/src/Counters.cpp +++ b/src/Counters.cpp @@ -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); }