diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2016-06-04 17:40:09 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-07 08:04:52 +0000 |
commit | a74e3a5be5586e1cad7fb20a8bb903924f408df3 (patch) | |
tree | 437113f68a8729d06e9f8c71ada5a4e70950ed2f /dbaccess | |
parent | a895d9868a637bf2a3c2ffd8d26828c99ea8f40f (diff) |
tdf#96516 fixup: when removing entry, entry count does not stay constant
Change-Id: I192a2d14787581545e66c46a84507f6dfd191c57
Reviewed-on: https://gerrit.libreoffice.org/25892
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/querydlg.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx index 3ea04b4e6d23..48b219574401 100644 --- a/dbaccess/source/ui/querydesign/querydlg.cxx +++ b/dbaccess/source/ui/querydesign/querydlg.cxx @@ -122,8 +122,7 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent, } else { - const sal_Int32 nCount = m_pLB_JoinType->GetEntryCount(); - for (sal_Int32 i = 0; i < nCount;) + for (sal_Int32 i = 0; i < m_pLB_JoinType->GetEntryCount();) { const sal_IntPtr nJoinTyp = reinterpret_cast<sal_IntPtr>(m_pLB_JoinType->GetEntryData(i)); if ( !bSupportFullJoin && nJoinTyp == ID_FULL_JOIN ) |