Bug 92075 - FORMATTING: When using =cell in a cell the number formatting becomes set but shows wrong
Summary: FORMATTING: When using =cell in a cell the number formatting becomes set but ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.3.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Formula
  Show dependency treegraph
 
Reported: 2015-06-15 02:16 UTC by Vesa Roto
Modified: 2023-04-22 19:28 UTC (History)
2 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 Vesa Roto 2015-06-15 02:16:01 UTC
When you add the value of a cell to other cell by entering = and then going clicking on another cell the number formatting get set to the formatting of the original cell, but sometimes the value shown in the result cell does not use the formatting until you cause a redraw by scrolling that cell outside the view area and back.  This seems to happen fairly often if the cells are far from each other.

Example/how to reproduce:
-Type 1.555555 in cell A1
-Format cell A1 to have number format: 0.00 (format cell->number)
-See that the cell shows: 1.56
-Then scroll somewhere so that the cell A1 is not visible and select a cell there. I used Z1. What you use may vary depending on how many cells you see.
-Check number formatting of that cell(Z1) and see that it is "general"
-Type = into that cell(Z1)
-Use scroll bars to scroll so that you see A1 and click the cell A1 so that the formula becomes =A1
-Press enter to accept formula
-about 80% probability of following:
--See that the cell(Z1) shows 1.555555   (ie. no formatting applied)
--Optional steps:
---Check number formatting of that cell(Z1) and see that it is "0.00" (format cell->number) (ie. The format of cell A1 is added as the format of cell Z1)
---Click cancel on the format cell to leave it as it is.
---See that the cell(Z1) still shows 1.555555 (ie. no formatting applied)
--End optional steps
--Scroll so that the target cell(Z1) is outside the visible area.
--Scroll the target cell(Z1) back into to visible area.
--See that the cell shows 1.56 (ie. formatting applied)
-About 20% probability of the cell showing 1.56 directly.

If both the source and destination cells are within the visible area at the same time like when using cell B1 as the target cell instead of the Z1 above the cell will "always" show the correctly formatted value (1.56 in this case)

Expected behavior:
That the behavior was the same regardless of the distance between the two cells.
Comment 1 Buovjaga 2015-06-17 06:35:20 UTC
Reproduced.

In 3.5.0 it does not yet copy the format.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 80ec99db4325a439a8a3f1d420d0a80f8bf9c439
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-06-16_00:00:20
Locale: fi-FI (fi_FI)

Ubuntu 15.04 64-bit
Version: 5.1.0.0.alpha1+
Build ID: 9ef671364ff9fbb552a5433053af9283d12d90c7
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2015-06-16_08:38:45
Locale: en-US (en_US.UTF-8)

LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 2 QA Administrators 2016-09-20 10:00:51 UTC Comment hidden (obsolete)
Comment 3 Vesa Roto 2019-01-05 14:22:12 UTC
Still happens in:

Version: 6.0.4.2 (x64)
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
CPU threads: 8; OS: Windows 10.0; UI render: GL; 
Locale: en-US (en_FI); Calc: CL
Comment 4 QA Administrators 2021-01-05 03:48:02 UTC Comment hidden (obsolete)
Comment 5 Vesa Roto 2021-01-05 04:07:18 UTC
Still present in:

Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 6; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: CL
Comment 6 QA Administrators 2023-01-06 03:19:55 UTC
Dear Vesa Roto,

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 with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

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) from https://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: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug