summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga991@gmail.com>2019-08-05 11:26:14 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2019-08-05 13:33:37 +0200
commit6461cec4dc1227c5f14c8e96b440c4ac2c0f2428 (patch)
treeb35078cdef785deaceab14d17609f191217feea6 /chart2
parent56757221d64a579a0140d84efc0c3415ee555023 (diff)
tdf#126686 Chart: fix crash
Regression from commit: fa0a981af41a2606541eec1cb20a379a739691e0 (tdf#114166 DOCX chart import: fix missing complex categories) Change-Id: I164ed45280fcf7034fa3be82fd80efc4f03e5ed9 Reviewed-on: https://gerrit.libreoffice.org/76972 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: Jenkins
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/tools/InternalData.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx
index b7a5118004ba..fcf3bf44c8e6 100644
--- a/chart2/source/tools/InternalData.cxx
+++ b/chart2/source/tools/InternalData.cxx
@@ -221,7 +221,7 @@ void InternalData::setComplexRowLabel( sal_Int32 nRowIndex, const vector< uno::A
enlargeData( 0, nRowIndex+1 );
}
sal_Int32 nSize = static_cast<sal_Int32>( m_aRowLabels[nRowIndex].size() );
- if( nSize >= 1 )
+ if( nSize >= 1 && !rComplexLabel.empty() )
{
m_aRowLabels[nRowIndex].resize(nSize+1);
m_aRowLabels[nRowIndex][nSize] = rComplexLabel[0];