Issue 112205 - attibutes draw:fill="solid" and draw:stroke="solid" not saved
Summary: attibutes draw:fill="solid" and draw:stroke="solid" not saved
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOO320m12
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp, needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2010-06-08 04:48 UTC by zagge
Modified: 2017-05-20 10:44 UTC (History)
1 user (show)

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


Attachments
odt file created by oowriter showing the problem (8.40 KB, application/vnd.oasis.opendocument.text)
2010-06-08 04:49 UTC, zagge
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description zagge 2010-06-08 04:48:35 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.
Comment 1 zagge 2010-06-08 04:49:44 UTC
Created attachment 69864 [details]
odt file created by oowriter showing the problem
Comment 2 eric.savary 2010-06-10 17:51:10 UTC
How do you set those attributes over the UI?


@OD PLease have a look.
Comment 3 zagge 2010-06-10 20:47:32 UTC
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.
Comment 4 eric.savary 2010-06-11 10:19:10 UTC
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.
Comment 5 zagge 2010-06-12 06:07:59 UTC
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.
Comment 6 eric.savary 2010-06-12 09:33:07 UTC
@OD: please evaluate if something is missing in the xml output.
Can't notice any format loss in the document itself.
Comment 7 Rob Weir 2013-02-02 03:00:02 UTC
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.
Comment 8 Marcus 2017-05-20 10:44:29 UTC
Reset the assignee to the default "issues@openoffice.apache.org".