Kaydet (Commit) 50d38110 authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#736017 (unlikely) invalid iterator use

Change-Id: Ibc097bfbb5cbfa221aa20cea0eba4d168b17a95f
üst 1aef3854
......@@ -129,7 +129,11 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::SearchCol(sal_uInt16 nCol, sal_uInt16 nT
if( bSimple )
{
SvxIconChoiceCtrlEntryPtrVec::const_iterator it = std::find( rList.begin(), rList.end(), pCurEntry );
DBG_ASSERT( it != rList.end(), "Entry not in Col-List" );
assert(it != rList.end()); //Entry not in Col-List
if (it == rList.end())
return 0;
if( bDown )
{
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