Issue 72134 - OpenOffice.org doesn't store @draw-fill styles of elements correctly if these are in <style:master-page>
OpenOffice.org doesn't store @draw-fill styles of elements correctly if these...
Status: CLOSED IRREPRODUCIBLE
Product: Impress
Classification: Application
Component: formatting
OOo 2.0.3
All All
: P3 trivial with 3 votes (vote)
: ---
Assigned To: clippka
issues@graphics
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-30 12:53 UTC by comsultia
Modified: 2007-01-02 10:25 UTC (History)
1 user (show)

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


Attachments
Example of saved document (141.54 KB, application/vnd.oasis.opendocument.presentation)
2006-11-30 12:54 UTC, comsultia
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description comsultia 2006-11-30 12:53:19 UTC
For example <draw:rect> in <style:master-page>
<draw:rect
	draw:layer="backgroundobjects"
	draw:text-style-name="P1"
	presentation:style-name="pr2"
	svg:height="2.551cm"
	svg:width="0.504cm"
	svg:x="0cm"
	svg:y="6.615cm">
	<text:p />
</draw:rect>

And the content of styles.xml
<style:style
	style:family="presentation"
	style:name="pr2"
	style:parent-style-name="lyt-cool-backgroundobjects">
	<style:graphic-properties
		draw:fill-color="#125c8d"
		draw:fill-image-height="1cm"
		draw:fill-image-width="1cm"
		draw:textarea-horizontal-align="center"
		draw:textarea-vertical-align="middle" />
</style:style>

Even if @draw:fill is not set to 'solid' OOo displays the element filled with 
#125c8d. The behavior is the same when saving all backgroundobjects.

A short description from the specification:
15.14.2 Color
The attribute draw:fill-color specifies the color of the fill for a graphic 
object.
It is used only if the draw:fill attribute has the value solid.
Comment 1 comsultia 2006-11-30 12:54:41 UTC
Created attachment 41015 [details]
Example of saved document
Comment 2 wolframgarten 2006-11-30 13:11:39 UTC
Prio changed. Reassigned. Please have a look.
Comment 3 comsultia 2006-12-18 14:56:09 UTC
*** Issue 72134 has been confirmed by votes. ***
Comment 4 clippka 2007-01-02 10:25:07 UTC
Please see specification at 14.2 Default Styles

"These defaults are 
used if a formatting property is neither specified by an automatic nor a common
style."

If you do not specify a style:default-style, the application will use its own
defaults for properties that have no specified default. OOo.org as an
application has a default of solid for the property draw:fill-style.
Application defaults are things that can change from application to application
and also from version to version, thats why we added the default styles. All
applications creating OpenDocument files should use them and define their
defaults for each property that has no specified default, if not, the results
are unpredictable.
Comment 5 clippka 2007-01-02 10:25:40 UTC
closing issue