summaryrefslogtreecommitdiff
path: root/cui/source/options/optgdlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-30 20:45:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-30 21:21:28 +0100
commitd637997d69ba3bd7bbad6f8cc1e0213f2c18d0d1 (patch)
tree3527d47b90901156ab123c1af1ef19a4645e91db /cui/source/options/optgdlg.cxx
parent1978655c32fe4b0c79bf98ee5b20c899ba59ba98 (diff)
coverity#1194915 Integer overflowed argument
Change-Id: I6c05a1094fcf3dd51079a6b67ee02b31cc2c6a6c
Diffstat (limited to 'cui/source/options/optgdlg.cxx')
-rw-r--r--cui/source/options/optgdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index c3794a85c952..4453b50d854a 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -1288,7 +1288,7 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet& rSet )
// Configured currency, for example, USD-en-US or EUR-de-DE, or empty for locale default.
OUString sOldCurr = pLangConfig->aSysLocaleOptions.GetCurrencyConfigString();
- sal_uInt16 nCurrPos = m_pCurrencyLB->GetSelectEntryPos();
+ sal_Int32 nCurrPos = m_pCurrencyLB->GetSelectEntryPos();
const NfCurrencyEntry* pCurr = (const NfCurrencyEntry*)
m_pCurrencyLB->GetEntryData( nCurrPos );
OUString sNewCurr;