[Libreoffice-commits] core.git: Branch 'feature/gsoc-calc-enhanced-db-range' - 2 commits - sc/source
Akash Shetye
shetyeakash at gmail.com
Fri Aug 16 09:16:40 PDT 2013
sc/source/core/tool/dbdataformatting.cxx | 8 ++++++++
sc/source/filter/inc/stylesbuffer.hxx | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
New commits:
commit 051317604e9ffdea9e5a4dc1004eced7409cf767
Author: Akash Shetye <shetyeakash at gmail.com>
Date: Thu Aug 15 22:36:20 2013 +0530
Gave default values to dbdataformatting style names and other variables
Change-Id: I7bba3443ca06a4e7ceff401584ba2bec372d42a3
diff --git a/sc/source/core/tool/dbdataformatting.cxx b/sc/source/core/tool/dbdataformatting.cxx
index 24fde5e..4ca3ef3 100644
--- a/sc/source/core/tool/dbdataformatting.cxx
+++ b/sc/source/core/tool/dbdataformatting.cxx
@@ -22,6 +22,14 @@
ScDBDataFormatting::ScDBDataFormatting()
{
+ //Avoiding problems caused by uninitialized values
+ maTableStyleName = "Default";
+ maFirstRowStripeStyle = "Default";
+ maSecondRowStripeStyle = "Default";
+ maFirstColStripeStyle = "Default";
+ maSecondColStripeStyle = "Default";
+ bBandedRows = false;
+ bBandedColumns = false;
}
ScDBDataFormatting::ScDBDataFormatting(const OUString& rTableStyleName, const OUString& rFirstRowStripeStyle, const OUString& rSecondRowStripeStyle, const OUString& rFirstColStripeStyle, const OUString& rSecondColStripeStyle, bool bBRows, bool bBCols) :
commit 947b34d805413aa3fb3e447b8c6bedefd441e8c7
Author: Akash Shetye <shetyeakash at gmail.com>
Date: Thu Aug 15 22:33:59 2013 +0530
Corrected a typo
Change-Id: Ie967a5a781d1e0ed7393a1afbafafad758b36795
diff --git a/sc/source/filter/inc/stylesbuffer.hxx b/sc/source/filter/inc/stylesbuffer.hxx
index fb6a67f..c274d2d 100644
--- a/sc/source/filter/inc/stylesbuffer.hxx
+++ b/sc/source/filter/inc/stylesbuffer.hxx
@@ -789,7 +789,7 @@ typedef ::boost::shared_ptr< Dxf > DxfRef;
struct TableStyleElementModel
{
- sal_int32 maDxfId;
+ sal_Int32 maDxfId;
OUString maStyleElementType;
};
More information about the Libreoffice-commits
mailing list