sc/source/filter/excel/xecontent.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit a77908a2d82986ad9d2d9597536d1e22ce2cafd2
Author: Tor Lillqvist <t...@collabora.com>
Date:   Wed Mar 8 09:50:46 2017 +0200

    Re-introduce a check I dropped in 7ceda09f6780c954fedc49764d5457aa2616b39a
    
    Without fully understanding the code, best to let the condition be
    there. Use the same function to check for validity as before.
    (IsValid() which was renamed to IsValidForXml().)
    
    Change-Id: If50df539737352f12cb0178706cbc38512a99366

diff --git a/sc/source/filter/excel/xecontent.cxx 
b/sc/source/filter/excel/xecontent.cxx
index ce70978..aad8d95 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -1486,7 +1486,8 @@ XclExpCondFormatBuffer::XclExpCondFormatBuffer( const 
XclExpRoot& rRoot, XclExtL
                         itr != pCondFmtList->end(); ++itr)
         {
             XclExpCondfmtList::RecordRefType xCondfmtRec( new XclExpCondfmt( 
GetRoot(), **itr, xExtLst, nIndex ));
-            maCondfmtList.AppendRecord( xCondfmtRec );
+            if( xCondfmtRec->IsValidForXml() )
+                maCondfmtList.AppendRecord( xCondfmtRec );
         }
     }
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to