sc/source/core/data/tablestyle.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 29a6450d93e2f3689928f5240779629c0e23ad54
Author:     Balazs Varga <[email protected]>
AuthorDate: Thu Feb 5 12:28:58 2026 +0100
Commit:     Balazs Varga <[email protected]>
CommitDate: Thu Feb 5 23:59:09 2026 +0100

    Table Style: fix crash because of wrong pattern check in
    
    table border build-up.
    
    caused-by: f136e1ed041ae84aff3e762f1e4430025292cf85
    (Improve border style handling for table styles)
    
    Change-Id: Id1cad1284244879c67dda8e337826eea3bdeac01
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198744
    Tested-by: Jenkins
    Reviewed-by: Balazs Varga <[email protected]>

diff --git a/sc/source/core/data/tablestyle.cxx 
b/sc/source/core/data/tablestyle.cxx
index d0b131c1136c..0a027c1609e5 100644
--- a/sc/source/core/data/tablestyle.cxx
+++ b/sc/source/core/data/tablestyle.cxx
@@ -260,8 +260,7 @@ std::unique_ptr<SvxBoxItem> ScTableStyle::GetBoxItem(const 
ScDBData& rDBData, SC
             = GetItemFromPattern(mpLastHeaderCellPattern.get(), ATTR_BORDER);
         if (mpTablePattern)
         {
-            if (const SvxBoxItem* pBoxItem
-                = GetItemFromPattern(mpTotalRowPattern.get(), ATTR_BORDER))
+            if (const SvxBoxItem* pBoxItem = 
GetItemFromPattern(mpTablePattern.get(), ATTR_BORDER))
             {
                 const ::editeng::SvxBorderLine* pTLine = 
pBoxItem->GetLine(SvxBoxItemLine::TOP);
                 const ::editeng::SvxBorderLine* pRLine = 
pBoxItem->GetLine(SvxBoxItemLine::RIGHT);
@@ -292,8 +291,7 @@ std::unique_ptr<SvxBoxItem> ScTableStyle::GetBoxItem(const 
ScDBData& rDBData, SC
             = GetItemFromPattern(mpFirstHeaderCellPattern.get(), ATTR_BORDER);
         if (mpTablePattern)
         {
-            if (const SvxBoxItem* pBoxItem
-                = GetItemFromPattern(mpTotalRowPattern.get(), ATTR_BORDER))
+            if (const SvxBoxItem* pBoxItem = 
GetItemFromPattern(mpTablePattern.get(), ATTR_BORDER))
             {
                 const ::editeng::SvxBorderLine* pTLine = 
pBoxItem->GetLine(SvxBoxItemLine::TOP);
                 const ::editeng::SvxBorderLine* pLLine = 
pBoxItem->GetLine(SvxBoxItemLine::LEFT);

Reply via email to