From: Richard Heck Date: Mon, 10 Mar 2014 19:39:43 +0000 (-0400) Subject: This is not a recoverable error. X-Git-Tag: 2.1.0rc1~51 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bdaad6e6ffc5fae3c491d784bbf631336828388c;p=features.git This is not a recoverable error. --- diff --git a/src/Author.cpp b/src/Author.cpp index d4061c64ea..fef6512aae 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 { - // authors_[0] is guaranteed to exist - LASSERT(id < (int)authors_.size() , return authors_[0]); + LBUFERR(id < (int)authors_.size()); return authors_[id]; }