diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-13 14:19:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-13 18:23:13 +0100 |
commit | 724d34d58b437843e40aaa74008d94cac1465cea (patch) | |
tree | fe2e0f8dee01133a4e794c2284451e91a9b1070c /sw/source/filter/html/htmltab.cxx | |
parent | ae0a3825f5ad06ff8d6ae3cb388e215d8abe2eb7 (diff) |
ofz#6891 empty vector access
Change-Id: Ic36d03d2646ebd90bea5fa91bc4dac3596a55d4a
Reviewed-on: https://gerrit.libreoffice.org/51224
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.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx index 9865974cd44e..be3776cb1846 100644 --- a/sw/source/filter/html/htmltab.cxx +++ b/sw/source/filter/html/htmltab.cxx @@ -2404,7 +2404,10 @@ void HTMLTable::MakeTable( SwTableBox *pBox, sal_uInt16 nAbsAvail, // Only tables with relative width or without width should be modified m_xLayoutInfo->SetMustResize( m_bPrcWidth || !m_nWidth ); - m_xLayoutInfo->SetWidths(); + if (!pLine1->GetTabBoxes().empty()) + m_xLayoutInfo->SetWidths(); + else + SAL_WARN("sw.html", "no table box"); const_cast<SwTable *>(m_pSwTable)->SetHTMLTableLayout(m_xLayoutInfo); |