Bug 37808 - Button 'Word Justify' works incorrectly on fontwork
Summary: Button 'Word Justify' works incorrectly on fontwork
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: FontWork-WordArt
  Show dependency treegraph
 
Reported: 2011-06-01 01:09 UTC by ape
Modified: 2021-10-07 23:49 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Error work 'Word Justify'-button (106.75 KB, image/png)
2011-06-01 01:09 UTC, ape
Details
Extected work 'Word Justify'-button (106.46 KB, image/png)
2011-06-01 01:12 UTC, ape
Details
Work 'Left Align'-button (106.76 KB, image/png)
2011-06-01 01:16 UTC, ape
Details
test case (19.42 KB, application/vnd.oasis.opendocument.text)
2012-01-25 23:11 UTC, sasha.libreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ape 2011-06-01 01:09:35 UTC
Created attachment 47410 [details]
Error work 'Word Justify'-button

OS - Windows_XP_64bit (All_OS); LibreOffice-3.4,3.3.2(Writer, Calc, Web, Draw, Impress); the Pop-up window 'Fontwork Alignment', toolbar 'Fontwork'.
Button 'Word Justify' works incorrectly. It repeats actions of button 'Left Align'. Expected actions of button 'Word Justify' are shown in figure.
Comment 1 ape 2011-06-01 01:12:15 UTC
Created attachment 47411 [details]
Extected work 'Word Justify'-button
Comment 2 ape 2011-06-01 01:16:05 UTC
Created attachment 47412 [details]
Work 'Left Align'-button
Comment 3 ape 2011-06-01 01:20:53 UTC
(In reply to comment #1)
> Created an attachment (id=47411) [details]
> Extected work 'Word Justify'-button
Sorry: Expected work 'Word Justify'-button
Comment 4 Björn Michaelsen 2011-12-23 12:03:40 UTC Comment hidden (obsolete)
Comment 5 sasha.libreoffice 2012-01-25 23:11:07 UTC
Created attachment 56166 [details]
test case

reproduced in LibO 3.6.0 master on Fedora 64 bit
Comment 6 ape 2013-12-22 13:46:49 UTC
Reproduced in LibO 4.3.0.0+ (master)
Comment 7 Joel Madero 2015-05-02 15:42:17 UTC Comment hidden (obsolete)
Comment 8 ape 2016-04-25 12:50:17 UTC
I confirm this bug:
LibO version: 5.2.0.0.alpha1; Build ID: 902b28a39528b6c92602e9b521a1d0861be1caf9
OS Version: Windows 5.2 x64
Comment 9 QA Administrators 2018-05-06 02:30:16 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2020-05-06 03:44:12 UTC Comment hidden (obsolete)
Comment 11 Julien Nabet 2020-09-08 14:42:13 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

Here's a codepointer:
https://opengrok.libreoffice.org/xref/core/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx?r=e67657d5#540

case SDRTEXTHORZADJUST_BLOCK : break;   // don't know
case SDRTEXTHORZADJUST_LEFT : break;    // already left aligned -> nothing to do
Comment 12 Regina Henschel 2021-10-07 23:49:07 UTC
The current rendering is wrong, the text should be centered.

The option "Word justify" is currently bound to the setting "option middle/center with checked 'Full width'" in the 'Text Attributes' dialog. That means, that it specifies an anchor for the text block. [The options 'Left align', 'Right align' and 'Center' are too bound the Anchor setting in the 'Text Attributes' dialog.]

The setting 'Full width' means, that the reference for the alignment of paragraphs in the text block of a custom shape is the edge of the text area of the custom shape. 'Full width disabled' means, that the reference is the box of the longest paragraph. But that makes no sense for Fontwork. The paragraphs in the text of a Fontwork cannot have different alignments and the text area is ignored for Fontwork.

This bounding to the "Text Attributes" dialog exists already in OOo2.4.3. and also the error, that the text becomes left aligned.

The expected behavior of "justify" cannot be achieved with binding to anchor "middle/center with 'full width' checked". So either the option should be removed or a new implementation is needed.