Kaydet (Commit) 1aef3854 authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#736018 (unlikely) invalid iterator use

Change-Id: I56899cfa1010f547c2793b5248dc91a3ceb4cdb4
üst 5a3cbd3b
...@@ -204,7 +204,11 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::SearchRow(sal_uInt16 nRow, sal_uInt16 nL ...@@ -204,7 +204,11 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::SearchRow(sal_uInt16 nRow, sal_uInt16 nL
if( bSimple ) if( bSimple )
{ {
SvxIconChoiceCtrlEntryPtrVec::const_iterator it = std::find( rList.begin(), rList.end(), pCurEntry ); 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 ) if( bRight )
{ {
while( ++it != rList.end() ) while( ++it != rList.end() )
......
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