diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-01-10 10:39:11 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-01-10 10:39:11 +0000 |
commit | ed157c553217ff820665926c79c54846a17ced5d (patch) | |
tree | ef084feec810dae36c6f6e9c4387ad6c56ef8041 /sw/source | |
parent | 2864c4ebc20d73daad2cd1d57398efd32290a59e (diff) |
- fixed: redline portions now work even more
(previously redline portions and bookmarks where omitted if behind the last hint)
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index dddb82cfc1ec..5ca28265bea4 100644 --- a/sw/source/core/unocore/unoportenum.cxx +++ b/sw/source/core/unocore/unoportenum.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoportenum.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: dvo $ $Date: 2001-01-08 11:50:20 $ + * last change: $Author: dvo $ $Date: 2001-01-10 11:39:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -591,6 +591,8 @@ Reference<XTextRange> lcl_ExportHints(SwpHints* pHints, nEndIndex++; //nMovePos legt die neue EndPosition fest sal_uInt16 nMovePos = nNextStart > nCurrentIndex && nNextStart < nNextEnd ? nNextStart : nNextEnd; + if (nMovePos <= nCurrentIndex) + nMovePos = pUnoCrsr->GetCntntNode()->Len(); if(aBkmArr.Count() && aBkmArr.GetObject(0)->nIndex < nMovePos) { @@ -610,7 +612,10 @@ Reference<XTextRange> lcl_ExportHints(SwpHints* pHints, if(nMovePos > nCurrentIndex) pUnoCrsr->Right(nMovePos - nCurrentIndex); else + { + DBG_ERROR("else obsoleted by 'if (nMovePos <= nCurrentIndex)' above"); pUnoCrsr->MovePara(fnParaCurr, fnParaEnd); + } } return xRef; } |