Bug 166603 - (docx)Text boxes in vertically written documents are positioned incorrectly
Summary: (docx)Text boxes in vertically written documents are positioned incorrectly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Textbox
  Show dependency treegraph
 
Reported: 2025-05-16 01:47 UTC by Saburo
Modified: 2025-07-13 18:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
samplefile (5.83 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-05-16 01:48 UTC, Saburo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Saburo 2025-05-16 01:47:15 UTC
Description:
Text boxes in vertically written documents are displayed in a different position than object frames.

Steps to Reproduce:
1.Open the attachment.
2.
3.

Actual Results:
Object position and display position are different

Expected Results:
displayed at the object's position


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 34cf82953ccd260a05a1c3838178ba50314e2eef
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded
Comment 1 Saburo 2025-05-16 01:48:24 UTC
Created attachment 200842 [details]
samplefile
Comment 2 Saburo 2025-05-16 01:49:14 UTC
Version: 7.1.0.0.alpha1+
Build ID: c9eb53f200225f2ee6ca695e1326843a487aee51

author	Daniel Arato (NISZ)
commit c9eb53f200225f2ee6ca695e1326843a487aee51

tdf#135198 sw editing: text box fell out of its shape
Without this patch if a shape anchored to a paragraph and containing
a text box was moved upwards beyond the vertical position of its anchor,
the text box failed to keep its position in sync with the shape.

This is fixed by telling the text box the absolute vertical position of
the corresponding shape after the latter is moved.

Note: Other fix is associated to the shortcut keys
Shift-Arrow Up/Shift-Arrow Down for moving text frames with
bigger steps vertically. Now it's not possible to use these
keys, but that was bad with text boxes, because it moved only
the text content of the text box.

Note: this patch fixes the vertical position of the text box
of textbox-wps-only.docx of the unit test textboxWpsOnly.

Change-Id: Ib66b13cae455462c616fed6bbd088433c83e61a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104520
Comment 3 Regina Henschel 2025-05-16 12:45:12 UTC
I see in addition, that the horizontal position of the text box is wrong.

Tested with Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cb149972d5fc82f3ca8009c3e51931c8d94ee664
CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded