]> git.lyx.org Git - features.git/commitdiff
This is not a recoverable error.
authorRichard Heck <rgheck@lyx.org>
Mon, 10 Mar 2014 19:39:43 +0000 (15:39 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 10 Mar 2014 19:39:43 +0000 (15:39 -0400)
src/Author.cpp

index d4061c64eaa1a879e50254aef89fd4646969bd81..fef6512aae1d97e2fbe97c7eb439309433230a27 100644 (file)
@@ -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];
 }