diff options
-rw-r--r-- | sw/source/core/doc/docredln.cxx | 5 | ||||
-rw-r--r-- | vcl/source/treelist/treelist.cxx | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx index f6ef057d4ae5..c1b9d8f9d74a 100644 --- a/sw/source/core/doc/docredln.cxx +++ b/sw/source/core/doc/docredln.cxx @@ -778,11 +778,14 @@ SwRedlineTable::size_type SwRedlineTable::FindPrevSeqNo( sal_uInt16 nSeqNo, size ++nSttPos; while( nSttPos > nEnd ) - if( nSeqNo == operator[]( --nSttPos )->GetSeqNo() ) + { + --nSttPos; + if( nSeqNo == operator[](nSttPos)->GetSeqNo() ) { nRet = nSttPos; break; } + } } return nRet; } diff --git a/vcl/source/treelist/treelist.cxx b/vcl/source/treelist/treelist.cxx index 3c9079cb68cb..50003c621fe7 100644 --- a/vcl/source/treelist/treelist.cxx +++ b/vcl/source/treelist/treelist.cxx @@ -431,6 +431,7 @@ sal_uInt32 SvTreeList::GetVisibleChildCount(const SvListView* pView, SvTreeListE pParent = NextVisible( pView, pParent, &nActDepth ); nCount++; } while( pParent && nRefDepth < nActDepth ); + assert(nCount >= 1 && "given do...while"); nCount--; return nCount; } |