Download it now!
Bug 46798 - FORMATTING: Hard coded "Text Centered" in new Shapes, Text boxes and Drawing objects
Summary: FORMATTING: Hard coded "Text Centered" in new Shapes, Text boxes and Drawing ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
3.3.4 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 66138 (view as bug list)
Depends on:
Blocks: Object-Selection-Alignment
  Show dependency treegraph
 
Reported: 2012-02-29 18:17 UTC by nomnex
Modified: 2019-10-09 16:07 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nomnex 2012-02-29 18:17:28 UTC
There is a problem with the default style in Draw.

It should behave as the default style in Writer, but it does not.

I set Alignment > left/top, so I expect from then on, any shape, text box, drawing object will have the text left align.

They do not. Not matter the default style setting, any new created text box, shape, etc. has a hard coded setting "text centered".

Either I had to select any newly created shape and go to menu Format > default formatting.
Either I had to reapply the default style (or any custom style) on the shape, drawing object, text box, containing text.

Draw styles could benefit a little cleanup. It looks like some default or hard coded settings (as the blue default fill color of the shapes) is not optimal anymore, and could be refreshed.
Comment 1 sasha.libreoffice 2012-05-29 03:24:30 UTC
Thanks for bugreport
reproduced in 3.3.4 and 3.5.3 on Fedora 64 bit (on Windows not tested)
reproducible in Impress and Draw
in Writer and Calc behaviour the same, but there are no such category of styles
Comment 2 Owen Genat (retired) 2013-10-15 09:53:31 UTC
I am providing an update for this bug as it has not had one for some time. The problem as described still exists but it appears to be more complicated than indicated, with behaviour differing according to LO Draw version, object type, and associated style. I have tested this with these LO Draw / OS combinations: 

- v3.5.7.2 Build: 3215f89-f603614-ab984f2-7348103-1225a5b / Crunchbang v11 x86_64.
- v3.6.7.2 Build: e183d5b / Ubuntu v10.04 x86_64.
- v4.0.5.2 Build: 5464147a081647a250913f19c0715bca595af2f / Ubuntu v10.04 x86_64.
- v4.1.2.2 Build: 281b75f427729060b6446ddb3777b32f957a8fb / Ubuntu v10.04 x86_64.
- v4.1.2.2 Build: 281b75f427729060b6446ddb3777b32f957a8fb / Crunchbang v11 x86_64. 

For text in different objects (associated style indicated in brackets) the default alignment [Vertical|Horizontal] across all versions appears to be:

- Line (Object without fill) = [Centred|Centred].
- Rectangle (Default) = [Centred|Centred].
- Text box (Default) = [Top|Left].
- Connector (Default) = [Centred|Centred].

I tested changing the alignment (toolbar button) and text anchor position (right-click > Text...) and then clicking the Update Style button in the Formatting & Styles panel to observe any effect. This required a fair amount of re-testing b/c of the Default style being shared between shapes[1], Connector, and Text box:

Object without fill:
- v3.5.7.2 / Crunchbang v11 x86_64 = OK
- v3.6.7.2 / Ubuntu v10.04 x86_64 = OK
- v4.0.5.2 / Ubuntu v10.04 x86_64 = OK
- v4.1.2.2 / Ubuntu v10.04 x86_64 = OK
- v4.1.2.2 / Crunchbang v11 x86_64 = OK

Default (shape):
- v3.5.7.2 / Crunchbang v11 x86_64 = Not OK
- v3.6.7.2 / Ubuntu v10.04 x86_64 = Not OK
- v4.0.5.2 / Ubuntu v10.04 x86_64 = Not OK
- v4.1.2.2 / Ubuntu v10.04 x86_64 = Not OK
- v4.1.2.2 / Crunchbang v11 x86_64 = Not OK

Default (Text box / Connector):
- v3.5.7.2 / Crunchbang v11 x86_64 = OK
- v3.6.7.2 / Ubuntu v10.04 x86_64 = OK
- v4.0.5.2 / Ubuntu v10.04 x86_64 = OK
- v4.1.2.2 / Ubuntu v10.04 x86_64 = OK
- v4.1.2.2 / Crunchbang v11 x86_64 = OK

The Text box and Connector object is affected as expected when the alignment of the text is changed and then the Default style updated i.e., any new Text box or Connector (and vice versa) assumes the setting. Somewhat similarly, when updating the Default style via a shape each subsequently drawn Text box or Connector assumes the new alignment. Only shapes appear unaffected.

It is also worth noting that changes to horizontal alignment (for example, via toolbar button) with a corresponding update to the Default style (for either shapes or a Connector) affects the vertical alignment of a Text box (set to Centred). This can then only be set to Top/Bottom by changing the Text anchor settings. It is all a bit confusing to be honest, but hopefully this information is useful to the developers.

Bug #58492 which deals with alignment in a text box (for two different methods of drawing a text box) would appear to be related, although not necessarily a duplicate.

[1] Rectangle, Ellipse, Basic, Symbol, Block Arrow, etc.
Comment 3 QA Administrators 2015-09-04 02:48:30 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2016-09-20 10:29:32 UTC Comment hidden (obsolete)
Comment 5 Regina Henschel 2019-10-09 16:06:13 UTC
The error still exists in Version: 6.4.0.0.alpha0+ (x64)
Build ID: b2d8093b19642038631dfb8f1ab6745a380a652c
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-09-23_22:42:37
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded
Comment 6 Regina Henschel 2019-10-09 16:07:06 UTC
*** Bug 66138 has been marked as a duplicate of this bug. ***