Kaydet (Commit) 7134a4c7 authored tarafından Daniel Vogelheim's avatar Daniel Vogelheim

- fixed: guard for obsoleted if clause if lcl_ExportHints(...)

üst c7f0c9c9
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment