[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at collabora.com
Wed Mar 8 11:56:30 UTC 2017
sc/source/filter/excel/xecontent.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit a77908a2d82986ad9d2d9597536d1e22ce2cafd2
Author: Tor Lillqvist <tml at 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 );
}
}
}
More information about the Libreoffice-commits
mailing list