[Libreoffice-bugs] [Bug 145000] Shadow distance for shapes mismatches locale length unit

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Oct 8 16:13:16 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=145000

--- Comment #1 from phv <libreoffice at phv.email> ---
This bug is more complex than I thought.

It only happens when Writer is loading a document after a fresh LibreOffice
start: Writer systematically resets the shadow distance in inch unit, even if
it's not the locale length unit or after the user has modified and saved the
measurement in centimeter.

I added steps to reproduce:
1. Set a locale setting with metric unit.
2. Close LibreOffice.
3. Create Writer document and insert a shape.
4. Open the Area window and enable the shadow: its distance is in centimeter.
5. Save.
6. Close LibreOffice (important!)
7. Load the previous document.

Actual Result: Shadow distance is now using inch length unit instead of the
locale length unit.
Expected Result: Shadow distance should use the locale length unit by default.

What I have tested so far after having saved a shape with a shadow distance in
centimer:
- Closing Writer and loading the document: still in centimeter.
- Closing LibreOffice and loading the document: now in inch.
- Inserting a new shape in a new Writer document after closing Writer or
LibreOffice: in centimeter.

To resume, Writer fails to load the locale shadow distance unit at startup but
the setting is called when a shape is created or modified from a window (but
not manually for whatever reason). Also to be noted, neither Draw or Impress
are affected by this bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20211008/ea377cde/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list