summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xecontent.cxx
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 13:54:42 +0200
commita77908a2d82986ad9d2d9597536d1e22ce2cafd2 (patch)
tree1e5959861659f8692dfb924b819cfa7e48be8995 /sc/source/filter/excel/xecontent.cxx
parentcdc601100e3cec820ea0802a03707c445d2800b1 (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
Diffstat (limited to 'sc/source/filter/excel/xecontent.cxx')
-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 ce70978b29c2..aad8d951606e 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 );
}
}
}