]> git.lyx.org Git - lyx.git/commitdiff
complain about bad getChar()s
authorJohn Levon <levon@movementarian.org>
Wed, 12 Mar 2003 18:06:49 +0000 (18:06 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 12 Mar 2003 18:06:49 +0000 (18:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6467 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/paragraph_pimpl.C

index 1b619a367d3c8fd9558923593bb1f1bd1e88e2c4..ba6f06d06f7f58f46ef3a6effd282b433debb89a 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-12  John Levon  <levon@movementarian.org>
+
+       * paragraph_pimpl.C: complain about bad getChar()s
+       for a while at least
+
 2003-03-12  John Levon  <levon@movementarian.org>
 
        * buffer.h:
index 0db77625212f0b4110dab3c7035318472726f262..dba667654409568b21c428f77345c19a7312a36c 100644 (file)
@@ -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];
 }