diff options
author | Henry Castro <hcastro@collabora.com> | 2024-02-05 12:29:40 -0400 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-07 20:27:54 +0100 |
commit | 43451b31969db882cd6c36054f43915ffbd8f252 (patch) | |
tree | bcc4c28e460479aefb889ae4c76546e21d23629b /sc | |
parent | 25799a95a02ea9a14adf9c9cb30faa636f09e351 (diff) |
tdf#158440: do not extend transparent color
Avoid to extend the area of transparent colors.
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: Ie492e6fea2c3d8b785cfbb96fe7cfc31d87b9996
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163021
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index 5bd4a6ea3ea7..438608dc8492 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 = GetColumnData(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; |