[Libreoffice-commits] core.git: chart2/source

Kohei Yoshida kohei.yoshida at collabora.com
Thu Jun 26 15:58:41 PDT 2014


 chart2/source/tools/InternalData.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 95272e7e5b7e38753ab07dbd6503b7cfa2974842
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Thu Jun 26 18:57:09 2014 -0400

    Prevent a crash while dumping internal data content.
    
    Change-Id: I0938b955b460d8c91607e6df0b9d9e1a4a971013

diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx
index ac796a9..72ce315 100644
--- a/chart2/source/tools/InternalData.cxx
+++ b/chart2/source/tools/InternalData.cxx
@@ -516,6 +516,9 @@ void InternalData::dump() const
     svl::GridPrinter aPrinter(1, m_nColumnCount, true);
     for (sal_Int32 nCol = 0; nCol < m_nColumnCount; ++nCol)
     {
+        if (m_aColumnLabels[nCol].empty())
+            continue;
+
         OUString aStr;
         if (m_aColumnLabels[nCol][0] >>= aStr)
             aPrinter.set(0, nCol, aStr);


More information about the Libreoffice-commits mailing list