diff options
author | Ouyang Leyan <ouyang.leyan@hotmail.com> | 2021-01-22 21:44:05 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-02 07:20:42 +0100 |
commit | 8ab75c40e349463c89988680c0a194a00018e420 (patch) | |
tree | 6607839bc5b01b92437365a82ff5756b09e9af75 /chart2/source | |
parent | 6bc3539336a947553f51c3537284e39d4cff04bd (diff) |
Correct arguments to create a svl::GridPrinter
Otherwise, the application does not compile with the DEBUG_CHART2_TOOLS
flag
Change-Id: I3c481f09502e810eb8b641bc1e2ff2ac87425596
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109834
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/tools/InternalData.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx index 91a9fbaa16fa..9808b237f4b7 100644 --- a/chart2/source/tools/InternalData.cxx +++ b/chart2/source/tools/InternalData.cxx @@ -23,6 +23,7 @@ #include <osl/diagnose.h> #include <rtl/math.hxx> + #ifdef DEBUG_CHART2_TOOLS #define DEBUG_INTERNAL_DATA 1 #endif @@ -532,7 +533,7 @@ void InternalData::dump() const if (!m_aRowLabels.empty()) { - svl::GridPrinter aPrinter(m_aRowLabels.size(), m_aRowLabels[0].size()); + svl::GridPrinter aPrinter(m_aRowLabels.size(), m_aRowLabels[0].size(), true); for (size_t nRow = 0; nRow < m_aRowLabels.size(); ++nRow) { for (size_t nCol = 0; nCol < m_aRowLabels[nRow].size(); ++nCol) @@ -545,7 +546,7 @@ void InternalData::dump() const aPrinter.print("Row labels"); } - svl::GridPrinter aPrinter(m_nRowCount, m_nColumnCount); + svl::GridPrinter aPrinter(m_nRowCount, m_nColumnCount, true); for (sal_Int32 nRow = 0; nRow < m_nRowCount; ++nRow) { |