[Libreoffice-bugs] [Bug 133847] New: Copying from template messed up Z-index on first page

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 10 08:09:47 UTC 2020


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

            Bug ID: 133847
           Summary: Copying from template messed up Z-index on first page
           Product: LibreOffice
           Version: 6.3.6.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: his at 9tw.de

Created attachment 161828
  --> https://bugs.documentfoundation.org/attachment.cgi?id=161828&action=edit
Sample files and Eclipse Project to reproduce the behaviour

Problem description: 

We are using LibreOffice as a server for Document generation and Mass printing.
It works this way: We have an odt as template. We load it into memory, replace
texts in content, do some zip/xml manipulating and save it as a single odt
file. 
 When the user wishes to get everything in one big file, we copy content and
styles to a newly created document via UNO-API (xStyleLoader.loadStylesFromURL,
xDocInsertable.insertDocumentFromURL).

In this particular case, there is inconsistency with the z-index of elements on
the first page of merged documents. This is only visible when elements are
overlapping. 

Z-Index of Elements in template:
* gr1 : 0
* fr1 : 1
* fr2 : 2 

Z-Index of Elements in result on first page:
* gr1 : 3
* fr1 : 1
* fr2 : 4

Z-Index of Elements in result on second page:
* gr1 : 2
* fr1 : 5
* fr2 : 6

I think we all agree that this Layout is bad practice and overlapping problems
are easily solvable with simple changes in the template, nonetheless it is also
a technical bug.

We made an example file and eclipse project including our Code for reproducing
the problem. Also including the "template", the single temp files and resulting
merged odt with the bad z-index on page 1.

I am filling this bug against 6.3.6 (Linux), since this is the version we are
promoting to our customers, but it is also reproducible with newer 6.4 (Linux)
and 7.0 beta 1 (Linux) versions and was originally found on Version 6.1
(Windows).
You might find the unoil, jurt, ridl, juh libs are quite old ones from Version
4 in the testproject, but I can assure there is no difference in behaviour with
newer ones, we already updated and testes with them.

Greetings

-- 
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/20200610/4c48fa05/attachment.htm>


More information about the Libreoffice-bugs mailing list