svtools/source/control/fmtfield.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 679628f248a94d54e78c8531d13e65f3ae221876 Author: Michael Meeks <michael.me...@suse.com> Date: Wed Nov 21 21:11:17 2012 +0000 initialize nCheckPos before passing it, undefined to SvNumberFormatter Change-Id: I8e80de82354ed0adf66b39175a5c9b993c541821 diff --git a/svtools/source/control/fmtfield.cxx b/svtools/source/control/fmtfield.cxx index 9bb3c4f..cf73f48 100644 --- a/svtools/source/control/fmtfield.cxx +++ b/svtools/source/control/fmtfield.cxx @@ -715,8 +715,8 @@ void FormattedField::SetThousandsSep(sal_Bool _bUseSeparator) // generate a new format ... OUString sFmtDescription = ImplGetFormatter()->GenerateFormat(m_nFormatKey, eLang, _bUseSeparator, IsRed, nPrecision, nAnzLeading); // ... and introduce it to the formatter - sal_Int32 nCheckPos; - sal_uInt32 nNewKey; + sal_Int32 nCheckPos = 0; + sal_uInt32 nNewKey; short nType; ImplGetFormatter()->PutEntry(sFmtDescription, nCheckPos, nType, nNewKey, eLang); @@ -758,7 +758,7 @@ void FormattedField::SetDecimalDigits(sal_uInt16 _nPrecision) // generate a new format ... OUString sFmtDescription = ImplGetFormatter()->GenerateFormat(m_nFormatKey, eLang, bThousand, IsRed, _nPrecision, nAnzLeading); // ... and introduce it to the formatter - sal_Int32 nCheckPos; + sal_Int32 nCheckPos = 0; sal_uInt32 nNewKey; short nType; ImplGetFormatter()->PutEntry(sFmtDescription, nCheckPos, nType, nNewKey, eLang); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits