X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FAuthor.cpp;h=79e7de0864b942d059a5ec1502eccb475f17b792;hb=c6e1db7682dc8d58a68147b5eee1d004829ef6d2;hp=6c608327e135c0d2e12ecc25569a2059af2ac640;hpb=1b1f8dd235ba8e168348cd23c824063f2595a0c5;p=lyx.git diff --git a/src/Author.cpp b/src/Author.cpp index 6c608327e1..79e7de0864 100644 --- a/src/Author.cpp +++ b/src/Author.cpp @@ -102,9 +102,7 @@ int AuthorList::record(Author const & a) void AuthorList::record(int id, Author const & a) { - // LASSERT: What should we do here? - LASSERT(unsigned(id) < authors_.size(), /**/); - + LBUFERR(unsigned(id) < authors_.size()); authors_[id] = a; } @@ -118,8 +116,7 @@ void AuthorList::recordCurrentAuthor(Author const & a) Author const & AuthorList::get(int id) const { - // LASSERT: What should we do here? - LASSERT(id < (int)authors_.size() , /**/); + LASSERT(id < (int)authors_.size() , return authors_[0]); return authors_[id]; }