CID#1103679 calm coverity re invalid iterators

Change-Id: Iad07aa59c6016752ec9467945d737380d214c3c0
This commit is contained in:
Caolán McNamara
2013-10-11 08:51:26 +01:00
parent 88af59fa75
commit 44fa08ed89

View File

@@ -1826,8 +1826,7 @@ void OSelectionBrowseBox::AddCondition( const OTableFieldDescRef& rInfo, const O
}
m_bVisibleRow[BROW_CRIT1_ROW + nLevel] = sal_True;
}
else if (aIter == getFields().end())
else if (aIter == rFields.end())
{
OTableFieldDescRef pTmp = InsertField(rInfo, BROWSER_INVALIDID, sal_False, sal_False );
if ( pTmp->isNumericOrAggreateFunction() && rInfo->IsGroupBy() ) // the GroupBy was inherited from rInfo