sc/inc/SparklineGroup.hxx |   27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

New commits:
commit d076da9d3d9a66ad3f1c28ee2688b9040e8a6ade
Author:     Tomaž Vajngerl <[email protected]>
AuthorDate: Fri Mar 4 17:26:34 2022 +0900
Commit:     Tomaž Vajngerl <[email protected]>
CommitDate: Mon Apr 11 01:58:54 2022 +0200

    sc: set default parameters in SparklineGroup
    
    The colors are set to COL_TRANSPARENT except for the series color,
    which is set to COL_BLUE by default. Other parameters are set to
    their default values according to OOXML specs.
    
    Change-Id: I67ceab2ffd723511fbf0616cca661992f0a8cf69
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131920
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <[email protected]>
    (cherry picked from commit a6a0b8cde3fa8673ea5ded216f9e007a496c9a88)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132775
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/sc/inc/SparklineGroup.hxx b/sc/inc/SparklineGroup.hxx
index b06dd3e7a8d5..c6df94e1bdc5 100644
--- a/sc/inc/SparklineGroup.hxx
+++ b/sc/inc/SparklineGroup.hxx
@@ -78,7 +78,32 @@ public:
     std::optional<double> m_aManualMin; // if m_sMaxAxisType is "custom"
     OUString m_sUID;
 
-    SparklineGroup() {}
+    SparklineGroup()
+        : m_aColorSeries(COL_BLUE)
+        , m_aColorNegative(COL_TRANSPARENT)
+        , m_aColorAxis(COL_TRANSPARENT)
+        , m_aColorMarkers(COL_TRANSPARENT)
+        , m_aColorFirst(COL_TRANSPARENT)
+        , m_aColorLast(COL_TRANSPARENT)
+        , m_aColorHigh(COL_TRANSPARENT)
+        , m_aColorLow(COL_TRANSPARENT)
+        , m_eMinAxisType(AxisType::Individual)
+        , m_eMaxAxisType(AxisType::Individual)
+        , m_fLineWeight(0.75)
+        , m_eType(SparklineType::Line)
+        , m_bDateAxis(false)
+        , m_eDisplayEmptyCellsAs(DisplayEmptyCellAs::Zero)
+        , m_bMarkers(false)
+        , m_bHigh(false)
+        , m_bLow(false)
+        , m_bFirst(false)
+        , m_bLast(false)
+        , m_bNegative(false)
+        , m_bDisplayXAxis(false)
+        , m_bDisplayHidden(false)
+        , m_bRightToLeft(false)
+    {
+    }
 
     SparklineGroup(const SparklineGroup&) = delete;
     SparklineGroup& operator=(const SparklineGroup&) = delete;

Reply via email to