sw/source/core/docnode/ndtbl1.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 40b84167a58901d50d98730260d968046283376c
Author:     Justin Luth <justin_l...@sil.org>
AuthorDate: Mon Dec 20 14:43:09 2021 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Dec 21 12:36:29 2021 +0100

    tdf#90805 sw tables: use veryThin instead of hairline borders
    
    This keeps it consitent with tdf#99027 which was fixed on the
    same day.
    
    Change-Id: I03d8a9c2ab1e7f6cf8a7c95d7600d549138e414e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127165
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
    Reviewed-by: Justin Luth <jl...@mail.com>
    (cherry picked from commit 3807e43b3b1a05eb7d9c88988b41448cfc05015a)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127183
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/core/docnode/ndtbl1.cxx 
b/sw/source/core/docnode/ndtbl1.cxx
index f300cec48c5d..1cb5fc651b6c 100644
--- a/sw/source/core/docnode/ndtbl1.cxx
+++ b/sw/source/core/docnode/ndtbl1.cxx
@@ -930,7 +930,7 @@ void SwDoc::SetTabLineStyle( const SwCursor& rCursor,
         
GetIDocumentUndoRedo().AppendUndo(std::make_unique<SwUndoAttrTable>(*pTableNd));
     }
 
-    const SvxBorderLine aHairlineBorder(pColor, SvxBorderLineWidth::Hairline);
+    const SvxBorderLine aDefaultBorder(pColor, SvxBorderLineWidth::VeryThin);
 
     for( auto &rU : aUnions )
     {
@@ -961,10 +961,10 @@ void SwDoc::SetTabLineStyle( const SwCursor& rCursor,
             }
             else if (pColor && !pBorderLine && !pTop && !pBot && !pLeft && 
!pRight)
             {
-                aBox->SetLine(&aHairlineBorder, SvxBoxItemLine::TOP);
-                aBox->SetLine(&aHairlineBorder, SvxBoxItemLine::BOTTOM);
-                aBox->SetLine(&aHairlineBorder, SvxBoxItemLine::LEFT);
-                aBox->SetLine(&aHairlineBorder, SvxBoxItemLine::RIGHT);
+                aBox->SetLine(&aDefaultBorder, SvxBoxItemLine::TOP);
+                aBox->SetLine(&aDefaultBorder, SvxBoxItemLine::BOTTOM);
+                aBox->SetLine(&aDefaultBorder, SvxBoxItemLine::LEFT);
+                aBox->SetLine(&aDefaultBorder, SvxBoxItemLine::RIGHT);
             }
             else
             {

Reply via email to