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

            Bug ID: 118113
           Summary: MAILMERGE: Conditionally hidden section leads to
                    anchoring to wrong page
           Product: LibreOffice
           Version: 6.2.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: m.wegh...@posteo.de

Created attachment 142657
  --> https://bugs.documentfoundation.org/attachment.cgi?id=142657&action=edit
Sample fle with hidden sections and a text box anchored to the page

Using mail merge on a document that contains objects anchored to the page and
sections that are hidden for some of the recipients may result in the objects
being anchored to the wrong pages in the resulting merged document.

Steps to reproduce:

1) open attached document "sample_mail_merge_with_hidden_section.odt"
2) run the Mail Merge wizard:
    * select "Tools" -> "Mail Merge Wizard"
    * select "Use the current document" -> "Next"
    * keep "Letter" for the type of document to create -> "Next"
    * select data source:
        * choose "Select Address List"
        * select "Add" and select the attached file "4-recipients.ods"
        * click "OK" to confirm to use this as the address list
        * make sure "This document shall contain an address block" is
unselected -> "Next"
    * make sure "This document should contain a salutation" is unselected ->
"Finish"
3) select "Save Merged Documents" in the mail merge toolbar
4) select to save as a single large document and click "Save Documents"
5) Once the document has been generated, choose a file name of your choice to
save the generated document to.
6) Open the generated odt file

Result:

* The generated document has 13 pages (only 10 pages are actually "visible",
the other 3 pages were inserted to make sure the content for each of the 4 data
records starts on an odd page number).
* The content for the single data records starts on pages 1, 3, 5, and 9. (This
is expected.)
* The text boxes are anchored to pages 1, 5, 9, and 13, which means this does
not match the pages on which the content for the single data records starts.
* The 4 last pages are empty except for the last text box that is anchored to
page 13.

Expected result:

* The document should contain 9 pages. The 4 last pages from the actual result
should not be there at all.
* The content for the single data records starts on pages 1, 3, 5, and 9. (This
is already the case.)
* The text boxes should be anchored to pages 1, 3, 5, and 9 (one text box at
the start of the content for each of the 4 data records).

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

Reply via email to