From: John Levon Date: Wed, 12 Mar 2003 18:06:49 +0000 (+0000) Subject: complain about bad getChar()s X-Git-Tag: 1.6.10~17258 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=42464c437a5662ad849836ab0651569e2f582317;p=lyx.git complain about bad getChar()s git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6467 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 1b619a367d..ba6f06d06f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-03-12 John Levon + + * paragraph_pimpl.C: complain about bad getChar()s + for a while at least + 2003-03-12 John Levon * buffer.h: diff --git a/src/paragraph_pimpl.C b/src/paragraph_pimpl.C index 0db7762521..dba6676544 100644 --- a/src/paragraph_pimpl.C +++ b/src/paragraph_pimpl.C @@ -260,8 +260,12 @@ Paragraph::value_type Paragraph::Pimpl::getChar(pos_type pos) const //Assert(pos < size()); // Then this has no meaning. (Lgb) - if (!siz || pos == siz) + if (!siz || pos == siz) { + lyxerr << "getChar() on pos " << pos << " in par id " + << owner_->id() << " of size " << siz + << " is a bit silly !" << endl; return '\0'; + } return text[pos]; }