From 8ab75c40e349463c89988680c0a194a00018e420 Mon Sep 17 00:00:00 2001 From: Ouyang Leyan Date: Fri, 22 Jan 2021 21:44:05 +0100 Subject: 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 --- chart2/source/tools/InternalData.cxx | 5 +++-- 1 file 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 #include + #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) { -- cgit