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

            Bug ID: 162742
           Summary: A wrap-through line is off-page, and makes the
                    document modified on open
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
               URL: https://ask.libreoffice.org/t/non-text-items-not-being
                    -saved-in-writer/110296
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 196169
  --> https://bugs.documentfoundation.org/attachment.cgi?id=196169&action=edit
line becomes off-page

Open the attached document. It has a single two-column two-cell table, A1
having multiple empty paragraphs, so that it has to split into page 2; B1 has a
single paragraph with no text and a single horizontal 2-cm at-char wrap-through
line, which is intended to be in the ~middle of the paragraph area (positioned
1 cm from para left, 2 mm from para top).

The line is not visible. Double-clicking it in the navigator reveals its
handles outside of the page (to the right). The document opens modified, with
the Undo list containing a single "Change style: Shape1" entry. Undoing it
moves the line further to the right.

The modified state appeared since version 5.0. In version 4.4, the document
view was the same as it is now: single-page view. In version 4.3, the document
opened in multiple-page view, with the second page shown to the right of the
first one; and then, it was obvious that the line appeared at the "expected"
position, but on the second page. Note that the changes in 4.4 and 5.0 are not
regressions themselves, they affect already displaced line. Their mention is a
possible pointer to the affected code.

Important markup elements:

1. /document/settings/config-item-set - even if empty! Removing it would make
the file open unchanged, with the line at the horizontal position still shifted
to the right, but still within the page.

2. /document/automatic-styles/style/graphic-properties:
style:wrap="run-through". Removing this gives same result.

3. Enough content in A1 to split into page 2. Removing a couple of paragraphs
(from the XML) makes the line appear exactly in the correct position.

Ref.:
https://ask.libreoffice.org/t/non-text-items-not-being-saved-in-writer/110296

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to