diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-30 14:43:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-30 16:56:11 +0100 |
commit | b17c29d493a1fc588524d6da332254fbb959f0db (patch) | |
tree | 2ef5e924ae7888955e871e82fbf89baa9223f70f /oox | |
parent | 3c62ed6b2f2a4bb75619b0737f733a2db2f0827d (diff) |
ofz: handle empty paragraphs case
Change-Id: I4c928f55881c1f9147eec1018381b3d3064c58ee
Reviewed-on: https://gerrit.libreoffice.org/45592
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/textbody.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/drawingml/textbody.cxx b/oox/source/drawingml/textbody.cxx index e57e24635561..9c8fcb6e5783 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 ); |