summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-30 14:43:29 +0000
committerMichael Stahl <mstahl@redhat.com>2017-11-30 22:42:29 +0100
commit7416251f918007430da562defba5d45d373f61b7 (patch)
tree6da4a510b5128d0112133d9d00ded728d8c37615
parent6ba85aad17a1a69fa6113d3c2ed8732b048ab3ee (diff)
ofz: handle empty paragraphs case
Change-Id: I4c928f55881c1f9147eec1018381b3d3064c58ee Reviewed-on: https://gerrit.libreoffice.org/45593 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--oox/source/drawingml/textbody.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/drawingml/textbody.cxx b/oox/source/drawingml/textbody.cxx
index 8f3a08cf5733..eb27bda831ac 100644
--- a/oox/source/drawingml/textbody.cxx
+++ b/oox/source/drawingml/textbody.cxx
@@ -95,6 +95,9 @@ void TextBody::ApplyStyleEmpty(
{
assert(isEmpty());
+ if (maParagraphs.empty())
+ return;
+
// Apply character properties
TextListStyle aCombinedTextStyle;
aCombinedTextStyle.apply( *pMasterTextListStylePtr );