From 44fa08ed89f61add6ba6fb0eb1b5c243b53c350f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 11 Oct 2013 08:51:26 +0100 Subject: [PATCH] CID#1103679 calm coverity re invalid iterators Change-Id: Iad07aa59c6016752ec9467945d737380d214c3c0 --- dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index ca189a1d1e88..0ae085991139 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -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