X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FAuthor.cpp;h=ffb12983f050bc8c4bacca4d9b495bfff9de16ba;hb=293b8dbe67dc025d03d0523d0079f71f5ab62ce3;hp=9007863e51f744893c8e39159360ba39a38ad3b8;hpb=679ce23ddc936b9254ab6158c52399637c5435f9;p=features.git diff --git a/src/Author.cpp b/src/Author.cpp index 9007863e51..ffb12983f0 100644 --- a/src/Author.cpp +++ b/src/Author.cpp @@ -120,11 +120,12 @@ int AuthorList::record(Author const & a) return it - beg; if (it->bufferId() == a.bufferId()) { int const id = it - beg; - if (!it->valid()) + 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; } }