[Libreoffice-bugs] [Bug 118829] New: FILEOPEN ODT setting only one of MARGIN-TOP/MARGIN-BOTTOM uses the settings of the style:default-style instead of the assigned style for the other
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 18 16:11:49 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=118829
Bug ID: 118829
Summary: FILEOPEN ODT setting only one of
MARGIN-TOP/MARGIN-BOTTOM uses the settings of the
style:default-style instead of the assigned style for
the other
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: jluth at mail.com
Created attachment 143622
--> https://bugs.documentfoundation.org/attachment.cgi?id=143622&action=edit
margin.odt: hand-modified to remove one of each pair of margins.
The problem in tdf#118521 can be reproduced for ODT as well. If the paragraph
defines only one of fo:margin-top or fo:margin-bottom, the undefined one ought
to assume the value of the defined style (MyStyle in this case). However, it
reverts to the style:default-style value instead.
(The same thing is true for margin-left and margin-right.)
Paragraph 1
<style:style style:name="P1" style:family="paragraph"
style:parent-style-name="MyStyle"><style:paragraph-properties
fo:margin-top="0cm" fo:margin-right="0cm"
Paragraph 2
<style:style style:name="P2" style:family="paragraph"
style:parent-style-name="MyStyle"><style:paragraph-properties
fo:margin-bottom="0cm" fo:margin-left="0cm"
MyStyle
<style:style style:name="MyStyle" style:family="paragraph"
style:parent-style-name="Standard" <style:paragraph-properties
fo:margin-top="0.9cm" fo:margin-bottom="0cm" fo:margin-left="0cm"
fo:margin-right="1.9cm"
Document Defaults
<style:default-style style:family="paragraph"><style:paragraph-properties
fo:margin-top="4cm" fo:margin-bottom="3cm" fo:margin-left="2cm"
fo:margin-right="5cm"
To reproduce.
1.) open the ODT file and notice that both paragraphs are set to MyStyle.
2.) look at the paragraph properties. Notice that the spacing that is not zero
matches the Docuemnt Defaults, not the MyStyle settings.
Expected results: Paragraph 1 has no upper/lower space and not left/right
space. Paragraph 2 has a top margin of .9 and a right margin of 1.9
Actual results: Paragraph 1 has "Before text" 2cm and "Below paragraph" 3cm.
Paragraph 2 has "After Text" 5cm and "Above paragraph" 4cm
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180718/1b5badfb/attachment.html>
More information about the Libreoffice-bugs
mailing list