Bug 97121 - Calc displays cell numbers which have a value of 0 and formatted as "-" as "###"
Summary: Calc displays cell numbers which have a value of 0 and formatted as "-" as "###"
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-14 06:00 UTC by miltonh26
Modified: 2020-08-29 19:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example of 0 not formatted as dash (859.30 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2016-01-14 06:00 UTC, miltonh26
Details
Screenshot of calc formatting "-" as "###" (8.58 KB, image/png)
2016-01-14 06:00 UTC, miltonh26
Details
Screenshot of calc formatting "###" displayed as "-" with wider column (8.86 KB, image/png)
2016-01-14 06:01 UTC, miltonh26
Details
Cell Property Dialog setting (73.15 KB, image/png)
2016-01-14 06:02 UTC, miltonh26
Details

Note You need to log in before you can comment on or make changes to this bug.
Description miltonh26 2016-01-14 06:00:07 UTC
Created attachment 121922 [details]
Example of 0 not formatted as dash

Calc has had an issue for a long time where cells with a value of 0 and formatted to display the dash character "-" are being displayed as "###" instead. This occurs even though the column is wide enough to display the dash. 

The cells format properties string is: 
   "_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)"

If the column is made wider until the cells are formatted correctly, the "###" formatting shifts to the next right most column even though it too is wide enough to display a dash for cells with a 0 value. 

Needless to say this bug is annoying and odd. 

Perhaps there is a simple way to configure Calc to always display 0 correctly.
Comment 1 miltonh26 2016-01-14 06:00:45 UTC
Created attachment 121923 [details]
Screenshot of calc formatting "-" as "###"
Comment 2 miltonh26 2016-01-14 06:01:32 UTC
Created attachment 121924 [details]
Screenshot of calc formatting "###" displayed as "-" with wider column
Comment 3 miltonh26 2016-01-14 06:02:01 UTC
Created attachment 121925 [details]
Cell Property Dialog setting
Comment 4 raal 2016-01-14 07:39:13 UTC
I can confirm with Version: 5.2.0.0.alpha0+ and Version 4.0.0.3; win7
Comment 5 Óvári 2016-01-14 08:18:39 UTC
Perhaps related to bug 87524?

Perhaps it works correctly with LO 4.2.x? (see bug 87524#c4)
Comment 6 QA Administrators 2017-03-06 14:33:47 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2019-12-03 14:55:10 UTC Comment hidden (obsolete)
Comment 8 Roman Kuznetsov 2020-08-29 19:21:32 UTC
no repro in

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 15988fe00c4f49ae32ab2d5cf3c16495ab6e1d59
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

Closed as WFM

See Comment 5 also