Issue 72920 - Drawing Text box loaded with wrong background color
Summary: Drawing Text box loaded with wrong background color
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-24 16:23 UTC by dfaure
Modified: 2017-03-10 12:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Testcase for frame without draw:fill-color (10.90 KB, application/vnd.oasis.opendocument.text)
2006-12-24 16:24 UTC, dfaure
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description dfaure 2006-12-24 16:23: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!
Comment 1 dfaure 2006-12-24 16:24:25 UTC
Created attachment 41694 [details]
Testcase for frame without draw:fill-color
Comment 2 kpalagin 2006-12-26 08:39:30 UTC
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.
Comment 3 michael.ruess 2007-01-19 15:07:14 UTC
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!
Comment 4 dfaure 2017-03-10 12:34:54 UTC
10 years later, bug still there :-)