summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-29 21:03:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-29 21:15:21 +0000
commitc08baae30c62d8bac45c8d49dd556ed1b770889c (patch)
tree217c7bf203cad7b24292ab54551926d774fa92cb /sc
parent1ee6577a0eae3d189d11233bccf90d11e48d771d (diff)
coverity#1194918 Overflowed array index read
Change-Id: Ic9cec3fc6749672b30bb1e0c96159897e50a84e5
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/pfiltdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/pfiltdlg.cxx b/sc/source/ui/dbgui/pfiltdlg.cxx
index 752bc4693a64..43d9e871d0f9 100644
--- a/sc/source/ui/dbgui/pfiltdlg.cxx
+++ b/sc/source/ui/dbgui/pfiltdlg.cxx
@@ -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 );