summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-03-17 13:40:44 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2022-03-28 15:00:45 +0200
commit4a0f92bf62a4aed2fd24bb6b43d045c8b2b2dfdd (patch)
tree6531cfafa621ff77d289d2bc96d04b1d8afd6613
parent8a734ba9287f8d25c3c3df50b4efc91b9035127d (diff)
lok: compatibility with older copy-paste tables
Change: commit 41b99644e8913dd4797775f4931382e93fa12a00 Author: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> 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 <szymon.klos@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132200 Tested-by: Jenkins
-rw-r--r--sw/source/filter/html/htmltabw.cxx4
1 files changed, 2 insertions, 2 deletions
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 ));