Apache OpenOffice (AOO) Bugzilla – Issue 72920
Drawing Text box loaded with wrong background color
Last modified: 2017-03-10 12:34:54 UTC
OOWriter "invents" a blue background for a text box with no background color specified. I'll attach the testcase. The XML says: <style:style style:name="fr1" style:family="graphic"> <style:graphic-properties fo:background-color="#ffffff" ..../> </style:style> <draw:frame draw:style-name="fr1" ...> [...] Why does OOWriter show a blue background for this frame? From the XML, it should be white. In fact I found that OOWriter uses draw:fill-color nowadays for the background color of text boxes (I guess fo:background-color is the background color of the text itself). That is fine I guess (*), I'll change kword to do that too, but still: if a frame doesn't have -any- draw:fill-color specified, and no style does either, it's a bug if the frame is loaded as blue. (*) I can't check what the ODF spec says at the moment, since OOo-2.0.4 seems to hang while opening the ODF spec (both with the 1.0 version as .sxw or with later internal version as .odt). That's another bug though. In any case this seems quite inconsistent too: text boxes would use draw:fill-color for the fill color of the whole frame and possibly fo:background-color for the background behind the text itself, but for table cells OOo uses fo:background-color for the background of the whole table cell!
Created attachment 41694 [details] Testcase for frame without draw:fill-color
Confirming with m197 (post-2.1 milestone) on WinXP - text box has blue background. dfaure, have you filed issue for ODF spec hunging Writer? If not, please provide URL for the document. Thanks.
Draw textboxes get their background property by "draw:fill-color". But I think, something like fo:background-color="#ffffff" should also be allowed. MRU->MIB: could you please add your opinion to this and hand it over to HBRINKM or OD? Thanks a lot!
10 years later, bug still there :-)