diff options
-rw-r--r-- | svtools/source/contnr/imivctl2.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/contnr/imivctl2.cxx b/svtools/source/contnr/imivctl2.cxx index 508e57f88e18..2da626eb49bb 100644 --- a/svtools/source/contnr/imivctl2.cxx +++ b/svtools/source/contnr/imivctl2.cxx @@ -204,7 +204,11 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::SearchRow(sal_uInt16 nRow, sal_uInt16 nL if( bSimple ) { SvxIconChoiceCtrlEntryPtrVec::const_iterator it = std::find( rList.begin(), rList.end(), pCurEntry ); - DBG_ASSERT( it != rList.end(), "Entry not in Row-List" ); + + assert(it != rList.end()); //Entry not in Row-List + if (it == rList.end()) + return 0; + if( bRight ) { while( ++it != rList.end() ) |