+2001-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/support/lyxstring.C (rfind): also test the first char in the
+ string and be sure that t >= 0.
+
2001-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/tabular.C (ReadNew): new method
2001-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/tabular.C (ReadNew): new method
TestlyxstringInvariant(this);
size_type ii = min(rep->sz - 1, i);
TestlyxstringInvariant(this);
size_type ii = min(rep->sz - 1, i);
- for (size_type t = ii; t != 0; --t) {
+ for (size_type t = ii; t >= 0; --t) {
if (rep->s[t] == c) return t;
}
return npos;
if (rep->s[t] == c) return t;
}
return npos;