diff -uNr sw.old/source/core/crsr/swcrsr.cxx sw.new/source/core/crsr/swcrsr.cxx --- sw.old/source/core/crsr/swcrsr.cxx 2007-07-16 15:38:26.000000000 +0800 +++ sw.new/source/core/crsr/swcrsr.cxx 2007-11-21 16:59:12.000000000 +0800 @@ -402,7 +402,7 @@ { // skip to the next / prev valida paragraph with a layout SwNodeIndex& rPtIdx = GetPoint()->nNode; - int bGoNxt = pSavePos->nNode < rPtIdx.GetIndex(); + int bGoNxt = rPtIdx.GetIndex() < pSavePos->nNode; while( 0 != ( pFrm = ( bGoNxt ? pFrm->GetNextCntntFrm() : pFrm->GetPrevCntntFrm() )) && 0 == pFrm->Frm().Height() )