oox/source/drawingml/textbody.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit d100a7c38bbf300b6aa7689b8252d187e24d7117
Author: Caolán McNamara <[email protected]>
Date:   Thu Nov 30 14:43:29 2017 +0000

    ofz: handle empty paragraphs case
    
    Change-Id: I4c928f55881c1f9147eec1018381b3d3064c58ee
    Reviewed-on: https://gerrit.libreoffice.org/45594
    Reviewed-by: Michael Stahl <[email protected]>
    Tested-by: Michael Stahl <[email protected]>

diff --git a/oox/source/drawingml/textbody.cxx 
b/oox/source/drawingml/textbody.cxx
index 8efb70d1cdd0..ad90a5dbf9d5 100644
--- a/oox/source/drawingml/textbody.cxx
+++ b/oox/source/drawingml/textbody.cxx
@@ -96,6 +96,9 @@ void TextBody::ApplyStyleEmpty(
 {
     assert(isEmpty());
 
+    if (maParagraphs.empty())
+        return;
+
     // Apply character properties
     TextListStyle aCombinedTextStyle;
     aCombinedTextStyle.apply( *pMasterTextListStylePtr );
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to