summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmltab.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-13 20:22:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-14 11:08:04 +0100
commited8dd7f47793b8ef3cc76ce4cde4d7348b51baad (patch)
tree3fae845096b590ca00efc992162a2d64d4b82978 /sw/source/filter/html/htmltab.cxx
parent5399998c498bd3047ecb430868d3aa0cde61fef2 (diff)
ofz: skip tables when parser is invalid
Change-Id: I8edc57be479ecd787fbf23b9e79fb81e47bab1d0 Reviewed-on: https://gerrit.libreoffice.org/46424 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/html/htmltab.cxx')
-rw-r--r--sw/source/filter/html/htmltab.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index d0dd6dfd22de..7296cd860348 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -5112,7 +5112,7 @@ std::shared_ptr<HTMLTable> SwHTMLParser::BuildTable(SvxAdjust eParentAdjust,
m_nContextStMin = pTCntxt->GetContextStMin();
m_nContextStAttrMin = pTCntxt->GetContextStAttrMin();
- if (m_xTable == xCurTable)
+ if (m_xTable == xCurTable && eState != SvParserState::Error)
{
// Set table caption
const SwStartNode *pCapStNd = m_xTable->GetCaptionStartNode();
@@ -5171,7 +5171,7 @@ std::shared_ptr<HTMLTable> SwHTMLParser::BuildTable(SvxAdjust eParentAdjust,
pTCntxt->RestorePREListingXMP( *this );
RestoreAttrTab( pTCntxt->aAttrTab );
- if (m_xTable == xCurTable)
+ if (m_xTable == xCurTable && eState != SvParserState::Error)
{
// Set upper paragraph spacing
m_bUpperSpace = true;