sc/source/core/data/tablestyle.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 2df3e26880304a9834f6937090d1b04b67ae9731 Author: Balazs Varga <[email protected]> AuthorDate: Thu Feb 5 12:28:58 2026 +0100 Commit: Balazs Varga <[email protected]> CommitDate: Fri Feb 6 09:07:18 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]> (cherry picked from commit 29a6450d93e2f3689928f5240779629c0e23ad54) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198793 Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sc/source/core/data/tablestyle.cxx b/sc/source/core/data/tablestyle.cxx index bf7c03664d09..bf4c5ac6f6cf 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);
