Kaydet (Commit) 679628f2 authored tarafından Michael Meeks's avatar Michael Meeks

initialize nCheckPos before passing it, undefined to SvNumberFormatter

Change-Id: I8e80de82354ed0adf66b39175a5c9b993c541821
üst 83833aa7
...@@ -715,8 +715,8 @@ void FormattedField::SetThousandsSep(sal_Bool _bUseSeparator) ...@@ -715,8 +715,8 @@ void FormattedField::SetThousandsSep(sal_Bool _bUseSeparator)
// generate a new format ... // generate a new format ...
OUString sFmtDescription = ImplGetFormatter()->GenerateFormat(m_nFormatKey, eLang, _bUseSeparator, IsRed, nPrecision, nAnzLeading); OUString sFmtDescription = ImplGetFormatter()->GenerateFormat(m_nFormatKey, eLang, _bUseSeparator, IsRed, nPrecision, nAnzLeading);
// ... and introduce it to the formatter // ... and introduce it to the formatter
sal_Int32 nCheckPos; sal_Int32 nCheckPos = 0;
sal_uInt32 nNewKey; sal_uInt32 nNewKey;
short nType; short nType;
ImplGetFormatter()->PutEntry(sFmtDescription, nCheckPos, nType, nNewKey, eLang); ImplGetFormatter()->PutEntry(sFmtDescription, nCheckPos, nType, nNewKey, eLang);
...@@ -758,7 +758,7 @@ void FormattedField::SetDecimalDigits(sal_uInt16 _nPrecision) ...@@ -758,7 +758,7 @@ void FormattedField::SetDecimalDigits(sal_uInt16 _nPrecision)
// generate a new format ... // generate a new format ...
OUString sFmtDescription = ImplGetFormatter()->GenerateFormat(m_nFormatKey, eLang, bThousand, IsRed, _nPrecision, nAnzLeading); OUString sFmtDescription = ImplGetFormatter()->GenerateFormat(m_nFormatKey, eLang, bThousand, IsRed, _nPrecision, nAnzLeading);
// ... and introduce it to the formatter // ... and introduce it to the formatter
sal_Int32 nCheckPos; sal_Int32 nCheckPos = 0;
sal_uInt32 nNewKey; sal_uInt32 nNewKey;
short nType; short nType;
ImplGetFormatter()->PutEntry(sFmtDescription, nCheckPos, nType, nNewKey, eLang); ImplGetFormatter()->PutEntry(sFmtDescription, nCheckPos, nType, nNewKey, eLang);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment