[Libreoffice-commits] core.git: oox/source
Caolán McNamara
caolanm at redhat.com
Thu Nov 30 15:56:56 UTC 2017
oox/source/drawingml/textbody.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit b17c29d493a1fc588524d6da332254fbb959f0db
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Nov 30 14:43:29 2017 +0000
ofz: handle empty paragraphs case
Change-Id: I4c928f55881c1f9147eec1018381b3d3064c58ee
Reviewed-on: https://gerrit.libreoffice.org/45592
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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 );
More information about the Libreoffice-commits
mailing list