From f38cae2e9e48426ae87c4e2c5342d7ae0bf1512d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 13 Mar 2003 15:12:40 +0000 Subject: [PATCH] deactivate overly restrictive assert. Lars, I believe pos() == size() is valid. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6488 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/paragraph_pimpl.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/paragraph_pimpl.C b/src/paragraph_pimpl.C index 63c72b8130..d24e7180d7 100644 --- a/src/paragraph_pimpl.C +++ b/src/paragraph_pimpl.C @@ -252,10 +252,12 @@ void Paragraph::Pimpl::rejectChange(pos_type start, pos_type end) Paragraph::value_type Paragraph::Pimpl::getChar(pos_type pos) const { - //lyx::Assert(pos <= siz); // This is stronger, and I belive that this is the assertion // that we should really use. (Lgb) - lyx::Assert(pos < size()); + //lyx::Assert(pos < size()); + +#warning I believe pos() == size() is valid if the cursor is at the last position of the par. (Andre) + lyx::Assert(pos <= size()); #if 0 // This is in the critical path for loading! -- 2.39.5