Bug 128433 - Applying writing mode tb-rl to a legacy rectangle puts text box outside the shape
Summary: Applying writing mode tb-rl to a legacy rectangle puts text box outside the s...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shape-Textbox
  Show dependency treegraph
 
Reported: 2019-10-28 13:30 UTC by Regina Henschel
Modified: 2023-07-19 20:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Legacy rectangles to test the behavior (16.33 KB, application/vnd.oasis.opendocument.presentation)
2019-10-28 13:30 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2019-10-28 13:30:08 UTC
Created attachment 155369 [details]
Legacy rectangles to test the behavior

Open attached file. It contains a legacy rectangle with a text box. It several versions of the shape with varying rotation and shear setting.

Apply the writing mode tb-rl to the shape text. Notice, that the position of the text block is wrong. It looks as if the text block is aligned to the left shape edge instead of the right edge. The handling of the CJK characters inside the text block is OK.
Comment 1 V Stuart Foote 2019-10-28 21:50:47 UTC
Confirmed on Windows 10 Ent 64-bit en-US with
Version: 6.3.2.2 (x64)
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

And to confirm it is not the 'vert' handling of the CJK--changed the text runs to western by removing the CJK glyphs, changing Western text font in the Character dialog to Arial. Even with no CJK the change to tb-rl shifts text out of the Draw text box.
Comment 2 QA Administrators 2021-10-28 04:15:11 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2021-10-28 09:06:30 UTC
The error still exists in Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: e1646284ef5a0367c770fa27299db64eedc30cbb
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL
Comment 4 Regina Henschel 2022-03-07 00:38:36 UTC
The error is related to the setting "Adjust to Contour". If that is disabled, the text has a position inside the rectangle. If it is enabled, the text is outside the rectangle.

This does not only affect the legacy rectangle, but polygon and textbox too. For a textbox you need to use the setting in the style, because "Adjust to Contour" is not available as direct attribute of a textbox.

The error has been introduced between OOo2.4.3 and OOo3.2.1.