Bug 162819 - Currency number format - Cannot preview Euro cents at the first try
Summary: Currency number format - Cannot preview Euro cents at the first try
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard: target:25.2.0
Keywords:
Depends on:
Blocks: Number-Format
  Show dependency treegraph
 
Reported: 2024-09-06 06:46 UTC by Timur
Modified: 2024-09-10 13:49 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
test ODT (11.17 KB, application/vnd.oasis.opendocument.text)
2024-09-06 06:46 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2024-09-06 06:46:40 UTC
Created attachment 196270 [details]
test ODT

Steps:
    Open the attached file on core build
    Select the number 13,5.
    Open the Table menu drop-down > Select Number Format
    In the dialogue box format number, select category currency, language and format EUR FR , format string "Un euro et vingt centimes in French"

Notice that you cannot see the decimal part as "ving centimes". You have to format the number, reopen the dialogue box then we can see Euros cents in letter.
Comment 1 m_a_riosv 2024-09-06 18:34:57 UTC
Reproducible
Version: 24.8.1.1 (X86_64) / LibreOffice Community
Build ID: ef51c4a0cd35185debf25ad9d0db6a1c14bed5a0
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1b61a0737e3600aadf42f28a15c70aface9ab61e
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 2 Commit Notification 2024-09-09 16:22:47 UTC
Henry Castro committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4f2a44849e74074b5c2741a8dec52229cf7d45e4

Resolves: tdf#162819 fix "NatNum12" preview string format

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Timur 2024-09-10 13:49:44 UTC
This is fixed for number text format, as in this ticket, thanks Henry.

Note from a dev for currency number format: the format 1.234,00 E does not preview the current selected 13,50E because it takes a hard coded default value due to "13,50" it is a string value and it is not converted to double value.