coverity#1194918 Overflowed array index read

Change-Id: Ic9cec3fc6749672b30bb1e0c96159897e50a84e5
This commit is contained in:
Caolán McNamara
2014-03-29 21:03:04 +00:00
parent 1ee6577a0e
commit c08baae30c

View File

@@ -284,9 +284,9 @@ void ScPivotFilterDlg::UpdateValueList( sal_uInt16 nList )
if ( pDoc && nList>0 && nList<=3 )
{
ComboBox* pValList = aValueEdArr[nList-1];
sal_uInt16 nFieldSelPos = aFieldLbArr[nList-1]->GetSelectEntryPos();
sal_uInt16 nListPos = 0;
OUString aCurValue = pValList->GetText();
sal_Int32 nFieldSelPos = aFieldLbArr[nList-1]->GetSelectEntryPos();
sal_Int32 nListPos = 0;
OUString aCurValue = pValList->GetText();
pValList->Clear();
pValList->InsertEntry( aStrNotEmpty, 0 );