sc/source/core/data/table4.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 716a4da9ec2645515f6f956384b724ab0f9fbe5d
Author:     Henry Castro <[email protected]>
AuthorDate: Mon Feb 5 12:29:40 2024 -0400
Commit:     Caolán McNamara <[email protected]>
CommitDate: Wed Feb 7 12:09:14 2024 +0100

    tdf#158440: do not extend transparent color
    
    Avoid to extend the area of transparent colors.
    
    Signed-off-by: Henry Castro <[email protected]>
    Change-Id: Ie492e6fea2c3d8b785cfbb96fe7cfc31d87b9996
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163022
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index 62b9dbb9e006..f8a03dd4c7ec 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -1314,7 +1314,7 @@ void ScTable::GetBackColorArea(SCCOL& rStartCol, SCROW& 
/*rStartRow*/,
                 const ScPatternAttr* pPattern = 
ColumnData(nCol).GetPattern(rEndRow + 1);
                 const SvxBrushItem* pBackground = 
&pPattern->GetItem(ATTR_BACKGROUND);
                 if 
(!pPattern->GetItem(ATTR_CONDITIONAL).GetCondFormatData().empty() ||
-                    pBackground != pDefBackground)
+                    (pBackground->GetColor() != COL_TRANSPARENT && pBackground 
!= pDefBackground))
                 {
                     bExtend = true;
                     break;

Reply via email to