summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-30 20:11:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-30 22:10:41 +0200
commitbc18682b598f1f1c071af8e70c1788352d96695d (patch)
tree6e478cf222934664cf7c9e3660760295479ae4b9
parent156fad36377ba369065bacad863a31c808314069 (diff)
frequent recent CppunitTest_sw_uiwriter failure
since... commit 66438a0ad5a3c6d2792f4c6c04c2d2405b5679cb Date: Fri May 28 15:35:25 2021 +0200 std::unique_ptr->std::optional Change-Id: I8feefa8787ebf82c1afd8109c6e4fa30f726d6da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116417 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/filter/html/htmltab.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 7113c8fa9313..699a44a89f42 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -3371,7 +3371,7 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions,
(!bTopTable && !bParentLFStripped &&
!m_pPam->GetPoint()->nContent.GetIndex()) )
pPostIts.emplace();
- SetAttr( bTopTable, bTopTable, &*pPostIts );
+ SetAttr( bTopTable, bTopTable, pPostIts ? &*pPostIts : nullptr );
}
else
{