From 1ff710d0b6c09cc3ffbb33842518d6b4b063a9ac Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 12 Jan 2011 23:22:06 +0000 Subject: [PATCH] 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 --- src/Counters.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.2