Apache OpenOffice (AOO) Bugzilla – Issue 112205
attibutes draw:fill="solid" and draw:stroke="solid" not saved
Last modified: 2017-05-20 10:44:29 UTC
Shapes added by oowriter do not save the draw:fill nor the draw:stroke attribute. It should save a draw:fill="solid" and draw:stroke="solid". Additionally it should also save the draw:fill-color and svg:stroke-color for the default values. I will attach a document created in oowriter. Here are some parts of it that show the problem. <draw:rect text:anchor-type="paragraph" draw:z-index="0" draw:style- name="gr1" draw:text-style-name="P1" svg:width="1.7713in" svg:height="1.5941in" svg:x="-0.189in" svg:y="-0.3591in"> <text:p/> </draw:rect> <draw:custom-shape text:anchor-type="paragraph" draw:z-index="1" draw:style-name="gr2" svg:width="1.9276in" svg:height="1.4067in" The styles gr1 and gr2 don't define the needed attributes <style:style style:name="gr1" style:family="graphic"> <style:graphic-properties draw:fill-color="#ff3366" draw:textarea- horizontal-align="center" draw:textarea-vertical-align="middle" style:run- through="foreground" style:wrap="run-through" style:number-wrapped- paragraphs="no-limit" style:vertical-pos="from-top" style:vertical- rel="paragraph" style:horizontal-pos="from-left" style:horizontal- rel="paragraph"/> </style:style> <style:style style:name="gr2" style:family="graphic"> <style:graphic-properties draw:textarea-horizontal-align="justify" draw:textarea-vertical-align="middle" draw:auto-grow-height="false" style:run- through="foreground" style:wrap="run-through" style:number-wrapped- paragraphs="no-limit" style:vertical-pos="from-top" style:vertical- rel="paragraph" style:horizontal-pos="from-left" style:horizontal- rel="paragraph"/> </style:style> The attributes are also not in the default style: <style:default-style style:family="graphic"> <style:graphic-properties draw:shadow-offset-x="0.1181in" draw:shadow- offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start- line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/> <style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:writing-mode="lr-tb" style:font-independent- line-spacing="false"> <style:tab-stops/> </style:paragraph-properties> <style:text-properties style:use-window-font-color="true" fo:font- size="12pt" fo:language="de" fo:country="DE" style:letter-kerning="true" style:font-size-asian="10.5pt" style:language-asian="zh" style:country- asian="CN" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/> </style:default-style> This attributes are needed that applications beside OpenOffice can open up the documents without problems. The problem does not occur in ooimpress.
Created attachment 69864 [details] odt file created by oowriter showing the problem
How do you set those attributes over the UI? @OD PLease have a look.
To create such a document just drop a shape from the tool bar to the document. The attributes are not saved.If you change the color the draw:fill-color is saved. Still the draw:fill attribute is not.
Same question differently formulated: which attributes reachable over the UI (please name the dialog, controls etc...) are not saved? Please detail on which system you are testing this and if you are using the OOo version from our site.
The attributes draw:fill, draw:stroke, draw:fill-color and svg:stroke-color are not saved when the default values of oowriter are used. These values represent the background color and stroke color of the shapes. E.g. no none of the above attributes are saved when you add e.g. a rectangle with from the toolbar. It has the default fill which is solid and a color cyan. However this values are not saved. Therefor it is quite hard for other applications beside OpenOffice also supporting odt to open these files correctly. I'm using the version specified on the bug report.
@OD: please evaluate if something is missing in the xml output. Can't notice any format loss in the document itself.
This Issue requires more information ('needmoreinfo'), but has not been updated within the last year. Please provide feedback as requested and re-test with the the latest version of OpenOffice - the problem(s) may already be addressed. You can download Apache OpenOffice 3.4.1 from http://www.openoffice.org/download Please report back the outcome of your testing, so this Issue may be closed or progressed as necessary - otherwise the issue may be Resolved as Invalid in the future.
Reset the assignee to the default "issues@openoffice.apache.org".