Bug 138221 - Mixed currency formatting being changed to only one currency type after adding decimal place to an interval
Summary: Mixed currency formatting being changed to only one currency type after addin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Format-Dialog
  Show dependency treegraph
 
Reported: 2020-11-15 00:06 UTC by Wesley Leite
Modified: 2023-05-06 12:25 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Bug example with two different currencies (7.58 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-11-15 00:09 UTC, Wesley Leite
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wesley Leite 2020-11-15 00:06:03 UTC
Description:
There is an unexpected behavior with LibO Calc related to currency formatting. Let's say you have an interval, e.g., A2:A3, filled with two different currencies: brazilian real (R$) and US dollar ($). If you select the whole interval A2:A3 and hit "Add decimal place" in order to increase the number of digits after the decimal separator, Calc changes all the currencies to only one currency. In this case, brazilian real (R$)! I think this is really not a matter of feature request, given that it changes drastically the information being displayed.   

Steps to Reproduce:
1.Choose an interval and fill it with numbers with many currencies formatting
2.Hit the "Add decimal place" located in the formatting bar  


Actual Results:
Calc changes all the currencies to only one currency formattting type. 

Expected Results:
It should add the decimal place for all of the cells and keep the original currency formatting for each cell.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 6.4.6.2
Build ID: 1:6.4.6-0ubuntu0.20.04.1
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: pt-BR (pt_BR.UTF-8); UI-Language: en-US
Calc: CL
Comment 1 Wesley Leite 2020-11-15 00:09:01 UTC
Created attachment 167303 [details]
Bug example with two different currencies
Comment 2 m_a_riosv 2020-11-15 00:59:27 UTC
Repro
Version: 6.4.7.2 (x64)
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 4; OS: Windows 10.0 Build 20180; UI render: GL; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US Calc: CL

It happens with any kind of number format the new format of the first cell it's applied to all.
Comment 3 QA Administrators 2022-11-16 03:46:37 UTC Comment hidden (obsolete)
Comment 4 m_a_riosv 2022-11-16 13:05:48 UTC
Still
Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e340b81d9d75d3aacfa941df4b531c6a9f5aaffa
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 5 BogdanB 2023-05-06 12:25:21 UTC
This bug can be solved ONLY if different values between cells are ignored in the Format cells window, and just common elements are changed. Otherwise, how LO should know what elements to change, when we have in the currency R$, and we press Ok to all selection?

Example from Writer:
For exemple, in Writer, if we have 2 lines, one with 12 font and the second one with 14 font and we select both - right click - Character - Character - Font, the font is different, so it is not shown, and not applied to selection, until selected. If I select 16, both will be 16, as I ordered.

So, I consider this is a UI bug, of not showing in UI elements that are different in selection. So, when clicked no change is applied. As in Writer with above example.

The same.
Retested on
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0f2581204a70038ed7ca78089a9bd96d158e02c0
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded