Bug 60778 - EDITING (some?) changes of currency format should trigger a recompute/reformat/...
Summary: EDITING (some?) changes of currency format should trigger a recompute/reforma...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-02-13 09:58 UTC by Lionel Elie Mamane
Modified: 2016-04-19 00:48 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 Lionel Elie Mamane 2013-02-13 09:58:43 UTC
1) Open a blank LibreOffice Calc document.

2) Enter 5 in A1, 3 in B1 and =A1-B1 in C1.

3) C1 displays 2: good

4) Right-click on A1, choose "Format Cells...". In tab "Numbers", take Category "Currency" and click "OK" (accepting the default currency format and locale).

5) Do the same on B1.

6) Now, A1 and B1 show currency values, but C1 shows a scalar (no currency)

7) Now, set the currency format on A2 and B2. Enter 5 and 3, respectively. In C2, enter =A2-B2. C2 displays a currency value.

The result is different in C1 and C2. It should be the same.

F9 and/or 'Menu Tools / Cell Contents / Recalculate' does not make a difference.

Go to C1. Enter =A1-B1, that is the *same* formula that is already in it. *Now* it displays as a currency.
Comment 1 Lionel Elie Mamane 2013-02-13 10:04:53 UTC
(In reply to comment #0)
> F9 and/or 'Menu Tools / Cell Contents / Recalculate' does not make a
> difference.

CTRL-SHIFT-F9 make the right kind of refresh, though: C1 now displays currency value.
Comment 2 Joel Madero 2013-03-21 18:22:48 UTC
Seems like you've been playing around with currency a lot.

Confirming, again changing version 3.6.5.2 :-D
Comment 3 ign_christian 2013-10-09 13:23:53 UTC
> 7) Now, set the currency format on A2 and B2. Enter 5 and 3, respectively.
> In C2, enter =A2-B2. C2 displays a currency value.

I can't reproduce that on LO 3.6.7.2 (Ubuntu 12.04 32bit), C2 has same format as C1.
Comment 4 QA Administrators 2015-04-01 14:41:38 UTC
** Please read this message in its entirety before responding **

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

   *Test to see if the bug is still present on a currently supported version of LibreOffice (4.4.1 or later)
   https://www.libreoffice.org/download/

   *If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior
 
   *If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System

Please DO NOT

   *Update the version field
   *Reply via email (please reply directly on the bug tracker)
   *Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 

1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)

http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug 
3. Leave a comment with your results. 
4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 
4b. If the bug was not present in 3.3 - add "regression" to keyword


Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa

Thank you for your help!

-- The LibreOffice QA Team This NEW Message was generated on: 2015-04-01
Comment 5 Buovjaga 2015-04-23 18:57:26 UTC
Reproduced, but not with 3.3.0.

Win 7 Pro 64-bit Version: 5.0.0.0.alpha1+ (x64)
Build ID: f3375fa07f27bd2ade519af3c07d69040d10eaa9
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-22_23:38:50
Locale: fi_FI

Ubuntu 14.10 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 6 Markus Mohrhard 2016-04-19 00:48:18 UTC
This used to be a bug but is now expected behavior. We removed inherited number formats because they were horrible to maintain, contained many bugs (see this bug report) and a performance nightmare.

Now you need to explicitly change number formats and number formats don't propagate any more. Only when the cell has not any set number format so for the first time you enter a formula the number format is calculated based on the input.