Bug 162742 - A wrap-through line is off-page, and makes the document modified on open
Summary: A wrap-through line is off-page, and makes the document modified on open
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/non-tex...
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2024-09-02 06:26 UTC by Mike Kaganski
Modified: 2024-11-14 05:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
line becomes off-page (9.72 KB, application/vnd.oasis.opendocument.text)
2024-09-02 06:26 UTC, Mike Kaganski
Details
Minimal FODT (2.52 KB, application/vnd.oasis.opendocument.text)
2024-09-02 06:28 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2024-09-02 06:26:04 UTC
Created attachment 196169 [details]
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
Comment 1 Mike Kaganski 2024-09-02 06:28:21 UTC
Created attachment 196170 [details]
Minimal FODT
Comment 2 Buovjaga 2024-11-13 17:30:20 UTC
Confirmed

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 921bc202246843d444d6e72a28457fd952e5333e
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 13 November 2024