Bug 127973 - Sidebar: Measurement unit's not initialized with char unit
Summary: Sidebar: Measurement unit's not initialized with char unit
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph-Dialog Measurement-Units
  Show dependency treegraph
 
Reported: 2019-10-05 08:14 UTC by Oliver Brinzing
Modified: 2023-07-17 16:08 UTC (History)
3 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 Oliver Brinzing 2019-10-05 08:14:28 UTC
steps to reproduce:

- open new writer document
- press (F11), select "Default Style", context menu "Modify...", 
- switch to "Indents & Spacing"
- measurment is: "cm"
- open Menu "Format/Paragraph..."
- switch to "Indents & Spacing"
- measurment is: "ch" or "line"

restart LO and do it vice versa with a new writer document, and you will get "ch" and "line" in both cases.

Menu Tools/Options/LibreOffice Writer/General
Settings
[x] Enable char unit

is enabled by default, but the sidebar seems not to be initialized with the setting.

*not* reproducible with:

Version: 6.1.6.3 (x64)
Build-ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc:
Comment 1 Julien Nabet 2019-10-05 10:31:50 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

I wonder if it could be a kind of dup of tdf#127744 put in See Also.
Comment 2 V Stuart Foote 2019-10-05 13:19:23 UTC
The 'ch' and 'line' units are being picked up from Tools -> Options -> Language Settings -> Languages when an entry is made in the Asian check box for 'Default Languages for Documents'.

When unchecked use of 'Western' or 'CTL' locales will not offer those units in the 'Indents and Spacing' tabs of either the Paragrah... dialog or the Styles and Formatting deck of the Sidebar.

It was already like that for the 5.3.7 builds, so not sure how far back the change enabling Asian 'Default languages for Documents' occurred.
Comment 3 BogdanB 2020-09-19 20:25:16 UTC
It is still the same in 7.1, like in the description. "ch" in both after tests done.


Version: 7.1.0.0.alpha0+
Build ID: d57b14e3394b081adf0888ed8dcb7b86d66c246c
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 4 QA Administrators 2022-09-20 03:33:37 UTC Comment hidden (obsolete)
Comment 5 BogdanB 2022-12-28 19:16:51 UTC
Oliver, please retest, in my test everything seems fine. Maybe I need another locale than English?
Comment 6 Stéphane Guillou (stragu) 2023-07-17 16:08:17 UTC
Still reproduced in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 77fca616e0bd79e0b405fd0b3543cf8e94e15df3
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Using the original steps + the hint from Stuart in comment 2:

1. "Tools -> Options -> Language Settings -> Languages > Default Languages for Documents": tick "Asian", click OK
2. press (F11), select "Default Style", context menu "Modify..."
3. switch to "Indents & Spacing"
4. unit is: "cm"
5. open Menu "Format/Paragraph..."
6. switch to "Indents & Spacing"
7. unit is: "ch" or "line"