Lars Gullik Bjønnes writes:

  I think the following patch should fix this:
  
  Index: lyxstring.C
  ===================================================================
  RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/lyxstring.C,v
  retrieving revision 1.12
  diff -u -r1.12 lyxstring.C
  --- lyxstring.C       1999/10/23 20:52:00     1.12
  +++ lyxstring.C       1999/10/27 23:02:11
  @@ -864,9 +864,8 @@
   
   lyxstring::size_type lyxstring::find(lyxstring const & a, size_type i) const
   {
  -     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,

-- 

Ronald Florence                 http://users.ids.net/~18james

Reply via email to