https://bugs.freedesktop.org/show_bug.cgi?id=57551

          Priority: medium
            Bug ID: 57551
          Assignee: [email protected]
           Summary: landscape/portrait sequence lost in FILESAVE as .doc
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: 4.0.0.0.alpha0+ Master
         Component: Writer
           Product: LibreOffice

Created attachment 70580
  --> https://bugs.freedesktop.org/attachment.cgi?id=70580&action=edit
Example document to reproduce issue

Steps to reproduce:
1) open the attached document
2) observe that page 1 is Landscape and page 2 is Portrait
3) save as .doc or .docx
4) close & reopen .doc / .docx
5) observe that both pages are now Portait!

Explanation:
In Word, distinct headers/footers may be set for the first page of the section
vs subsequent pages.  In LibreOffice this maps to a chain of two page styles,
the first page style having "Next Style" set to the second page style.

When exporting back to Word format, this pattern is detected in reverse: if two
page styles are linked together, and they look compatible (eg same margins),
then they are combined into a single output section with the "Different First
Page" header/footer setting enabled.

The problem is that page orientation is not considered when deciding if the two
page styles look compatible, so this combination of page styles gets triggered
when it should not.

(BTW this example was constructed from noticing the problem in the code).

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

Reply via email to