]> git.lyx.org Git - features.git/blobdiff - src/Author.cpp
Change label "Show Zoom" to "Show Zoom Value"
[features.git] / src / Author.cpp
index b4cf9fd97baa3c87a7cebddc19ff3ac00bf733ff..ffb12983f050bc8c4bacca4d9b495bfff9de16ba 100644 (file)
@@ -119,12 +119,13 @@ int AuthorList::record(Author const & a)
                if (valid && *it == a)
                        return it - beg;
                if (it->bufferId() == a.bufferId()) {
-                       int id = it - beg;
-                       if (!it->valid())
-                               // we need to handle the case of a valid author being registred
+                       int const id = it - beg;
+                       if (!it->valid()) {
+                               // we need to handle the case of a valid author being registered
                                // after an invalid one. For instance, because "buffer-reload"
                                // does not clear the buffer's author list.
                                record(id, a);
+                       }
                        return id;
                }
        }