Bug 163941 - Some number formats are not applied to blank cells
Summary: Some number formats are not applied to blank cells
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Cells
  Show dependency treegraph
 
Reported: 2024-11-17 18:16 UTC by OfficeUser
Modified: 2024-11-18 18:54 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Video of the bug (1.02 MB, application/octet-stream)
2024-11-17 18:17 UTC, OfficeUser
Details
Video of the bug (1.02 MB, video/webm)
2024-11-17 18:19 UTC, OfficeUser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description OfficeUser 2024-11-17 18:16:05 UTC
- Select a range of cells
- Apply bolean or any time/date format to the cell selection
- Enter numbers into the cells

Note that these numbers to are not displayed in the selected format.

Workaround: Re-select the cells and apply number format after values have been entered.

Perhaps other formats besides boolean and time are also affected. This remains to be found out.

Please have a look at the attached video that visualizes the bug.
Comment 1 OfficeUser 2024-11-17 18:17:54 UTC
Created attachment 197666 [details]
Video of the bug
Comment 2 OfficeUser 2024-11-17 18:19:16 UTC
Created attachment 197667 [details]
Video of the bug
Comment 3 m_a_riosv 2024-11-17 21:51:49 UTC
Please attach a sample file.

I think this issue was already reported, but I can't find it now.
Comment 4 Aron Budea 2024-11-18 03:11:11 UTC
I'm not sure a sample file is helpful, the point is to have empty cells, and the repro steps are all manual.

I can confirm both in a recent daily build and in 3.3.0. Setting it to NEW for now, if it turns out to be a duplicate, it can be closed as one.
Comment 5 Eike Rathke 2024-11-18 18:54:07 UTC
Number formats _are_ applied to blank cells, but if a number is typed into a pre-formatted cell then a Boolean or DateTime format is changed to Number. This is on *purpose* because usually no one wants to see a numeric number input value formatted as TRUE or DateTime and it would rather confuse people if it was.

The only thing we could sensibly do is if on a Boolean formatted cell the input is 0 or 1 then preserve the Boolean format, else for any other value remove the format as it is currently done. If that wouldn't confuse people..