summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-03-08 09:50:46 +0200
committerTor Lillqvist <tml@collabora.com>2017-03-08 14:31:16 +0200
commitfb644433728e0648ec0952b2b805fddf7569dc3e (patch)
treebb2dba7b1088e17d5479842d8bf33284ad3473e5
parenta0ce73f4ebfa4fae1f229b417d9595f1124f34ba (diff)
Re-introduce a check I dropped in 47b5f3a07236bb07a681e99e509c78e3af18c0b5
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().) (cherry picked from commit a77908a2d82986ad9d2d9597536d1e22ce2cafd2) Change-Id: If50df539737352f12cb0178706cbc38512a99366
-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 e691de7e7d3c..7448b184addb 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -1454,7 +1454,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 );
}
}
}