https://bugs.documentfoundation.org/show_bug.cgi?id=129758

            Bug ID: 129758
           Summary: FILEOPEN: RTF: paragraph borders inherited when style
                    is overridden by undefined borders
           Product: LibreOffice
           Version: 3.6.0.4 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 156916
  --> https://bugs.documentfoundation.org/attachment.cgi?id=156916&action=edit
tdf129631_lostBorders3.rtf: second paragraph should not have borders (Word
2003)

It surprised me, but ONLY defining a border colour (as a direct property) is
enough to to completely override everything about the style-defined borders.
However, LO just completely ignores border properties (in putBorderProperty) if
a NS_ooxml::LN_CT_PBdr_* is not defined.

Instead, it appears that a default none-border should be created when only a
partial border definition is specified. (That should be fairly easy to do - it
should do that almost automatically as long as a NS_ooxml::LN_CT_PBdr is
created.)

Border support was first introduced around LO 3.6 (commit
343b52ee76f1a88a27007319af644dcce76536cc), and it was already incorrectly
ignoring the none-border colour and simply inheriting everything from the
paragraph style.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to