Bug 169388 - Alignment in LibreOffice Impress text boxes is not working.
Summary: Alignment in LibreOffice Impress text boxes is not working.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
25.8.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-11 16:47 UTC by Michaël
Modified: 2025-11-12 17:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example with different paragraph alignments (22.94 KB, application/vnd.oasis.opendocument.presentation)
2025-11-12 12:01 UTC, Regina Henschel
Details
Try to align (1.02 MB, video/mp4)
2025-11-12 13:06 UTC, Michaël
Details
Just a document with text (101.66 KB, application/vnd.oasis.opendocument.presentation)
2025-11-12 13:23 UTC, Michaël
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michaël 2025-11-11 16:47:34 UTC
Description:
Lorsque j'ai plusieurs lignes de textes dans une zone de texte et que je souhaite changer l'alignement d'une seule ligne, toutes les lignes bougent.

Steps to Reproduce:
1.Créer une zone de texte.
2.Ecrire plusieurs ligne en allant à la ligne à chaque fois.
3.Tenter de modifier l'alignement d'une des lignes.

Actual Results:
Toute les lignes bougent.

Expected Results:
Seule la ligne sélectionnée devrait bouger.


Reproducible: Always


User Profile Reset: No

Additional Info:
La mise en page des autres lignes n'est pas indiqué comme ayant été modifié alors que les lignes ont bougé.
Comment 1 V Stuart Foote 2025-11-11 17:07:58 UTC
Can not confirm of Windows builds.

No issue using the 'Increase indent' or the 'Decrese indent' found on the Sidebar Properties deck in the 'Paragraph' context panel. 

Indentation of text elements of a draw Text box, or those of a draw shape object, work as expected applied to a single selected line of the object's text element.

=-testing-=

Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 28; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

=-gloss of OP-=
When I have multiple lines of text in a text box and I want to change the alignment of just one line, all the lines move.

Steps to Reproduce:
1. Create a text box.

2. Type several lines, starting a new line after each one.

3. Try to change the alignment of one of the lines.

Actual Results:
All lines move.

Expected Results:
Only the selected line should move.

Reproducible: Always

User Profile Reset: No

Additional Info: The layout of the other lines is not indicated as having been changed, even though the lines have moved.
Comment 2 Regina Henschel 2025-11-11 23:53:24 UTC
Context menu > Text Attributes. Is "Full width" checked? If not, the alignment is relative to the surrounding box of the current text.

Do not use the alignment icons, but use Format > Paragraph, when the cursor is inside the paragraph.
Comment 3 Michaël 2025-11-12 11:10:25 UTC
After mail exchange

"Do not use the alignment icons, but use Format > Paragraph, when the cursor is

inside the paragraph." 
==> it doesnt work, same résults.


Context menu > Text Attributes. Is "Full width" checked? If not, the alignment
is relative to the surrounding box of the current text.

==> i check and uncheck, no change.

It'sthe same on libreoffice impress and libreoffice draw but not in libreoffice writer.
I can make a short vid if needed.
Comment 4 Regina Henschel 2025-11-12 12:01:45 UTC
Created attachment 203895 [details]
Example with different paragraph alignments

The attachment has examples for alignment, please have a look.

Please attach a document, that shows the problems.
Comment 5 Michaël 2025-11-12 13:06:26 UTC
Created attachment 203901 [details]
Try to align
Comment 6 Regina Henschel 2025-11-12 13:18:12 UTC
I cannot open the attachment. And a video does not help. I need your document to see what you have actually used.
Comment 7 Michaël 2025-11-12 13:23:29 UTC
Created attachment 203902 [details]
Just a document with text

In the last document you sent me, I was unable to align the elements in the two text boxes. That's what I wanted to show you in the video. This is not a problem of the formation of the text box but a problem of the software. I remind you that I'm on linux mint if it helps.
Comment 8 V Stuart Foote 2025-11-12 13:47:01 UTC
(In reply to Michaël from comment #7)
> 
> In the last document you sent me, I was unable to align the elements in the
> two text boxes. That's what I wanted to show you in the video. This is not a
> problem of the formation of the text box but a problem of the software. I
> remind you that I'm on linux mint if it helps.

Looking at your video (I have to download and use a local viewer VLC), seems like you *are not* selecting the line of text to be adjusted. So the adjustment is applying to the entire paragraph of the draw object.

Make a selection the line(s)/sentence with a triple-mouse click, believe that will isolate from the rest of the sd object's text "paragraph" and allow its alignment/indentation to be adjusted.
Comment 9 Michaël 2025-11-12 13:54:51 UTC
Ok, thanks. When I select a sentence i can align.
But why the method i use in the video have worked before and not now ? Why it's move all the lines weirdly ? Why it's work on writer but not on draw or impress ?
before i juts have to put the cursor on a line and align, it worked but not now ?

Thank you for your answer, i can use your method but i thinks there is always a bug.

Michaël
Comment 10 Regina Henschel 2025-11-12 17:13:00 UTC
The behavior of the buttons was changed in https://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drtxtob1.cxx by commit https://git.libreoffice.org/core/commit/1d9ce0a67a71e51569cd33c26270eeece587a354 as fix for bug 162571.

You can see the old behavior as expected by the bug reporter in version Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 32; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded

The page https://wiki.documentfoundation.org/Documentation/Text_in_Custom_Shapes describes the interaction between paragraph alignment and text block anchor. That is for custom shapes. But the behavior for a text box or an outline layout shape is similar, only that the latter expand on overflow when wrap is disabled and a custom shape does not automatically expand but simple overflow.