From: Georg Baum Date: Sun, 21 Jan 2007 21:52:01 +0000 (+0000) Subject: Compile fix. X-Git-Tag: 1.6.10~11101 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dbfda45b194ab9e3bbc7be0e93cceeb099ef86d0;p=lyx.git 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 --- 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; }