summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-03-08 09:50:46 +0200
committerAndras Timar <andras.timar@collabora.com>2017-03-26 21:35:42 +0200
commit37482cba41c49e9168387acfb470d4bb0a0eef7d (patch)
tree8157295807ebc5907317c7cd502d3883beed3e9b
parent0dd6c9160f49faf352eff9abf5b64fb57a44ac1c (diff)
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 (cherry picked from commit a77908a2d82986ad9d2d9597536d1e22ce2cafd2)
-rw-r--r--sc/source/filter/excel/xecontent.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 8d8fb874ca70..fa5f336329e2 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -1485,7 +1485,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 );
}
}
}