Opened 9 years ago
Closed 9 years ago
#5282 closed Bug (fixed)
Formatter's sizeToString() and memToString() return wrong text for 0 bytes
Reported by: | jordan | Owned by: | jordan |
---|---|---|---|
Priority: | Normal | Milestone: | 2.77 |
Component: | Qt Client | Version: | 2.76 |
Severity: | Minor | Keywords: | |
Cc: |
Description
Both return "Unknown" when zero bytes are passed in, rather than "None". It's a simple off-by-one in the code:
if( bytes < 1 ) return tr( "Unknown" ); else if( !bytes ) return tr( "None" );
Change History (2)
comment:1 Changed 9 years ago by jordan
- Status changed from new to assigned
comment:2 Changed 9 years ago by jordan
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
r13995: fixed in 2.7x
r13996: fixed in trunk