https://bugs.documentfoundation.org/show_bug.cgi?id=156685
--- Comment #16 from Mike Kaganski <mikekagan...@hotmail.com> --- (In reply to Heiko Tietze from comment #11) > In fact XATTR_FILLSTYLE for the table object is FillStyle_SOLID and by that > defaults to Tango Sky Blue 114,159,207. Removing this calculation temporary > (ie. bRetval = false) detects the correct color. Tried to solve with > rSet.Put(XFillStyleItem (drawing::FillStyle_NONE)); in > SdDrawDocument::CreateDefaultCellStyles() but no success. Another idea was > to read the cell background in GetTextEditBackgroundColor() at if( pTable ) > - but no idea how to. I'm afraid it's not quite correct. 1. The cell background is read there - the 'GetDraftFillColor(pTable->GetActiveCellItemSet(), aBackground )' call is the first there. 2. The table background (in the call to 'GetDraftFillColor(pText->GetMergedItemSet(), aBackground)') is empty there; but then, its parent item set is queried - and that gives the default Tango Sky Blue. The option is to not read the parent in the latter call - maybe we need to add a boolean to GetDraftFillColor, to call 'rSet.Get' there with a respective flag. Then, the result from querying the table background would be false, and it will continue correctly... -- You are receiving this mail because: You are the assignee for the bug.