Ronald Florence <[EMAIL PROTECTED]> writes:

|   -   if (!rep->sz) return npos;
|   +   if (!rep->sz || i >= rep->sz) return npos;
|       
|   -   Assert(i < rep->sz);
|       TestlyxstringInvariant(this);
|    
|       for (size_type t = i; rep->sz - t >= a.length(); ++t) {
|   
| This does not fix the problem.  Thanks for the quick try,

Actually this fix is correct, it should just have been done on one
more place too...

In the member function:
lyxstring::size_type lyxstring::find(value_type const * s, size_type i) const

Try the same fix there. (Don't remove the first Assert)

        Lgb

Reply via email to