From 4a0f92bf62a4aed2fd24bb6b43d045c8b2b2dfdd Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 17 Mar 2022 13:40:44 +0100 Subject: lok: compatibility with older copy-paste tables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change: commit 41b99644e8913dd4797775f4931382e93fa12a00 Author: Samuel Mehrbrodt Date: Mon Sep 27 11:59:54 2021 +0200 tdf#48622 Add new border line width defaults introduced regression in the HTML export used in lok. It changed expected value of border thickness what caused export of many empty additional table rows. Change-Id: I35045ad4673609b0f092477b4c7f71b057f18774 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131702 Tested-by: Szymon Kłos Reviewed-by: Szymon Kłos Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132200 Tested-by: Jenkins --- sw/source/filter/html/htmltabw.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/filter/html/htmltabw.cxx b/sw/source/filter/html/htmltabw.cxx index e72e2908e630..e39cb506ff10 100644 --- a/sw/source/filter/html/htmltabw.cxx +++ b/sw/source/filter/html/htmltabw.cxx @@ -817,9 +817,9 @@ void SwHTMLWrtTable::Write( SwHTMLWriter& rWrt, sal_Int16 eAlign, OutTableCells( rWrt, pRow2->GetCells(), pRow2->GetBackground() ); if( !m_nCellSpacing && nRow < m_aRows.size()-1 && pRow2->m_bBottomBorder && - pRow2->m_nBottomBorder > SvxBorderLineWidth::Hairline ) + pRow2->m_nBottomBorder > SvxBorderLineWidth::Thin ) { - for( auto nCnt = (pRow2->m_nBottomBorder / SvxBorderLineWidth::Hairline) - 1; nCnt; --nCnt ) + for( auto nCnt = (pRow2->m_nBottomBorder / SvxBorderLineWidth::Thin) - 1; nCnt; --nCnt ) { rWrt.OutNewLine(); HTMLOutFuncs::Out_AsciiTag( rWrt.Strm(), OStringConcatenation(rWrt.GetNamespace() + OOO_STRING_SVTOOLS_HTML_tablerow )); -- cgit