- lyx::Assert(pos <= size());
-
- // This is stronger, and I belive that this is the assertion
- // that we should really use. (Lgb)
- // Rationale - getChar() is really text[]. getInset(getChar(size()))
- // makes no sense (crashes). The fact we return '\0' should be
- // evidence enough - jbl
- //lyx::Assert(pos < size());
-
-#if 1
- // This is in the critical path for loading!
- pos_type const siz = size();
-
- if (pos == siz) {
- lyxerr << "getChar() on pos " << pos << " in par id "
- << owner_->id() << " of size " << siz
- << " is a bit silly !" << endl;
- return '\0';
- }
-#endif
- return text[pos];
-}
-
-
-void Paragraph::Pimpl::setChar(pos_type pos, value_type c)
-{
-#warning changes
- text[pos] = c;