summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkash Shetye <shetyeakash@gmail.com>2013-08-15 22:36:20 +0530
committerAkash Shetye <shetyeakash@gmail.com>2013-08-15 22:36:20 +0530
commit051317604e9ffdea9e5a4dc1004eced7409cf767 (patch)
tree467128b56489d7be989af26b51a505759e86c90d
parent947b34d805413aa3fb3e447b8c6bedefd441e8c7 (diff)
Gave default values to dbdataformatting style names and other variables
Change-Id: I7bba3443ca06a4e7ceff401584ba2bec372d42a3
-rw-r--r--sc/source/core/tool/dbdataformatting.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/core/tool/dbdataformatting.cxx b/sc/source/core/tool/dbdataformatting.cxx
index 24fde5e0f2d3..4ca3ef3cac9f 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) :