diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-26 18:57:09 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-26 18:58:41 -0400 |
commit | 95272e7e5b7e38753ab07dbd6503b7cfa2974842 (patch) | |
tree | 656d499ce55463a40ebac2626c190902e8d34e94 /chart2/source/tools/InternalData.cxx | |
parent | 4cda79cec3fe54b6859ec8ca550f4453ace7fcb2 (diff) |
Prevent a crash while dumping internal data content.
Change-Id: I0938b955b460d8c91607e6df0b9d9e1a4a971013
Diffstat (limited to 'chart2/source/tools/InternalData.cxx')
-rw-r--r-- | chart2/source/tools/InternalData.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx index ac796a9e867e..72ce3154cc16 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); |