[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 29 11:13:48 PST 2012
sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 954ce6f102855be1bd5c84432003d529773b39a8
Author: Eike Rathke <erack at redhat.com>
Date: Thu Nov 29 20:12:12 2012 +0100
initialize index for IsNumberFormat()
Change-Id: I6a97cf9e8607eb6cf70d3b5d94e75c68c8f96c95
diff --git a/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
index 53c0593..f5a6e17 100644
--- a/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
@@ -240,8 +240,8 @@ void ScChangeTrackingExportHelper::SetValueAttributes(const double& fValue, cons
bool bSetAttributes(false);
if (sValue.Len())
{
- sal_uInt32 nIndex;
- double fTempValue;
+ sal_uInt32 nIndex = 0;
+ double fTempValue = 0.0;
if (rExport.GetDocument() && rExport.GetDocument()->GetFormatTable()->IsNumberFormat(sValue, nIndex, fTempValue))
{
sal_uInt16 nType = rExport.GetDocument()->GetFormatTable()->GetType(nIndex);
More information about the Libreoffice-commits
mailing list