https://bugs.documentfoundation.org/show_bug.cgi?id=157618

--- Comment #5 from Patrick Luby <[email protected]> ---
Note for myself: I found that the cell's ATTR_BACKGROUND gets set differently
depending on whether you are opening the .ods or the .xlsx files attached to
this bug.

Next step: find where ATTR_BACKGROUND is set during loading of the document:


diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 7638652e6857..87383ec29398 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -472,6 +472,10 @@ void ScPatternAttr::fillColor(model::ComplexColor&
rComplexColor, const SfxItemS
         }
         else
         {
+            // tdf#157618 when opening the .ods file, ATTR_BACKGROUND is set
+            // to the Error style's red background color whereas opening the
+            // .xlsx file, ATTR_BACKGROUND is set to the cell's directly
+            // formatted transparent background color.
             aBackColor = rItemSet.Get(ATTR_BACKGROUND).GetColor();
         }

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to