GNOME Bugzilla – Bug 555519
Formula bar show formatted input instead of raw input
Last modified: 2012-02-22 01:08:53 UTC
IMPORTANT: step 1 and step 2 cannot be swapped, format must be set before keying in value in order to reproduce the bug. Steps to reproduce: 1. Change A1's number format to Number | 0 decimal places. 2. Key in "123.45" in A1. 3. Focus cursor at A1. Expected result: A1 displays "123", but formula bar shows "123.45". Actual result: A1 displays "123" and formula bar displays "123". It looks like the problem is related to the cell->value's value_fmt. A1's value_fmt = 0 in the reproduce procedure. If we swap step 1 and step 2, value_fmt = NULL.
The cell contains "123.45" not "123". I would want the formula bar to show the true value. Could you explain why you would want the formula bar to show a value other than the one you would need to edit if yo were going to change that value?
What you have as "expect result" is what I actually see. In other words, I see "123.45" in the edit bar. This is also what I expect to see. Could you please confirm that "actual results" in comment 1?
Hmm... I see you actual results too in some cases. specifically, it matter whether the cell is pre-formatted to zero decimals or whether the format is added later.
I guess I should learn to read. I mixed up your expected and actual. I am of course agreeing with what you expect.
*** Bug 577866 has been marked as a duplicate of this bug. ***
*** Bug 670550 has been marked as a duplicate of this bug. ***
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.