From dbfda45b194ab9e3bbc7be0e93cceeb099ef86d0 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 21 Jan 2007 21:52:01 +0000 Subject: [PATCH] Compile fix. Michael, I guess that you need to retest this code, since the old one did obviously not do what you intended. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16801 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text.C b/src/text.C index 0760839000..69b16de864 100644 --- a/src/text.C +++ b/src/text.C @@ -887,13 +887,13 @@ void LyXText::acceptChange(LCursor & cur) // last paragraph of the selection requires special handling if (pit == end.pit()) { // skip if the selection ends before the end-of-par - if (end.pos < pos) + if (end.pos() < pos) continue; // skip if the selection ends with the end-of-par and this is not the // last paragraph of the document // note: the user must be able to accept the end-of-par of the last par! - if (end.pos == pos && pit != pars_.size() - 1) + if (end.pos() == pos && pit != pars_.size() - 1) continue; } -- 2.39.5