From 9a86bf76fe1d8457c12026b9f96c0ce971b29b53 Mon Sep 17 00:00:00 2001 From: Jean-Tiare Le Bigot Date: Mon, 14 Nov 2016 00:15:15 +0100 Subject: chartx: (regression) fix crash on label import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sparse chart import moved from assuming that the number of elements in the list parsed from ooxml is the same as the real number of elements. For this, the patch relies on a new member that was not always initialized. This patch fixes a missing initialization. According to 'grep' this should be the last one. Change-Id: I31d8a653f227100436360deef4a53c9418de9d93 Reviewed-on: https://gerrit.libreoffice.org/30838 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- oox/source/drawingml/chart/titlecontext.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'oox/source') diff --git a/oox/source/drawingml/chart/titlecontext.cxx b/oox/source/drawingml/chart/titlecontext.cxx index 6064178a80d2..6bbdf0f2b121 100644 --- a/oox/source/drawingml/chart/titlecontext.cxx +++ b/oox/source/drawingml/chart/titlecontext.cxx @@ -78,6 +78,7 @@ void TextContext::onCharacters( const OUString& rChars ) // Also store it as a single element type for non-Excel document. mrModel.mxDataSeq->maData[0] <<= rChars; + mrModel.mxDataSeq->mnPointCount = 1; } } -- cgit