17/03/2014 11:09, Vincent van Ravesteijn:
  Author const & AuthorList::get(int id) const
  {
-       LBUFERR(id < (int)authors_.size());
+       LASSERT(id < (int)authors_.size() , return authors_[0]);
         return authors_[id];
  }

Yes, I was wondering about this. On one hand, your commit message made
a bit sense, but on the other hand I didn't understand why you would
want LyX to crash rather than to take a safe (slightly wrong)
alternative.

I'm not sure what others feel about doing something wrong in such kind of case.

What about returning a special wrong_author static value?

JMarc

Reply via email to