diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-01-10 20:12:38 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-01-10 20:12:38 +0000 |
commit | 7134a4c7f16f43d87742c4b8cd1cb523d0ac53ba (patch) | |
tree | b0d367fc7755695d2f0adf5bf69f3621166004db /sw | |
parent | c7f0c9c915f9c16525738797c61a16935067297c (diff) |
- fixed: guard for obsoleted if clause if lcl_ExportHints(...)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index 5ca28265bea4..8debaf5ead95 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.5 $ + * $Revision: 1.6 $ * - * last change: $Author: dvo $ $Date: 2001-01-10 11:39:11 $ + * last change: $Author: dvo $ $Date: 2001-01-10 21:12:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -613,7 +613,12 @@ Reference<XTextRange> lcl_ExportHints(SwpHints* pHints, pUnoCrsr->Right(nMovePos - nCurrentIndex); else { - DBG_ERROR("else obsoleted by 'if (nMovePos <= nCurrentIndex)' above"); + // ensure proper exit: move to paragraph end + // (this should not be necessary any more; we assert it only + // happens when the above would move to the end of the + // paragraph anyway) + DBG_ASSERT(nMovePos == pUnoCrsr->GetCntntNode()->Len(), + "may only happen at paragraph end"); pUnoCrsr->MovePara(fnParaCurr, fnParaEnd); } } |