]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxstring.C
remove commented HAVE_SSTREAM code
[lyx.git] / src / support / lyxstring.C
index d247be4b7fbec7b5882055602625cfe2cca53631..1e3b542a6d7c58e9734eaeb7720a12d03dba48d8 100644 (file)
@@ -1317,7 +1317,7 @@ lyxstring & lyxstring::replace(size_type i, size_type n, value_type const * p)
 lyxstring & lyxstring::replace(size_type i, size_type n,
                               size_type n2, value_type c)
 {
-       Assert(i < rep->sz);  // OURS!
+       Assert(i <= rep->sz);  // OURS!
        TestlyxstringInvariant(this);
 
        rep = rep->get_own_copy();