You've already forked lazarus-ccr
fpspreadsheet: Fix formatting error of large numbers if grid column width is very narrow (TrimToCell).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5906 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -21,11 +21,7 @@ unit fpspreadsheetgrid;
|
|||||||
- When Lazarus 1.4 comes out remove the workaround for the RGB2HLS bug in
|
- When Lazarus 1.4 comes out remove the workaround for the RGB2HLS bug in
|
||||||
FindNearestPaletteIndex.
|
FindNearestPaletteIndex.
|
||||||
- Arial bold is not shown as such if loaded from ods
|
- Arial bold is not shown as such if loaded from ods
|
||||||
- Background color of first cell is ignored.
|
- Background color of first cell is ignored. }
|
||||||
|
|
||||||
- Enter 1234567890 into a cell. reduce col width with mouse. Immediately
|
|
||||||
before display becomes #### there is 11E09 in the cell - it should be 1E09.
|
|
||||||
Cell not correctly erased? }
|
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
@ -5408,7 +5404,7 @@ begin
|
|||||||
while decs > 0 do
|
while decs > 0 do
|
||||||
begin
|
begin
|
||||||
dec(decs);
|
dec(decs);
|
||||||
nfs := '0.' + DupeString('0', decs) + 'E-00';
|
nfs := IfThen(decs = 0, '0E-00', '0.' + DupeString('0', decs) + 'E-00');
|
||||||
Result := FormatFloat(nfs, ACell^.NumberValue, Workbook.FormatSettings);
|
Result := FormatFloat(nfs, ACell^.NumberValue, Workbook.FormatSettings);
|
||||||
// Result := Format('%.*e', [decs, ACell^.NumberValue], Workbook.FormatSettings);
|
// Result := Format('%.*e', [decs, ACell^.NumberValue], Workbook.FormatSettings);
|
||||||
if isStacked then
|
if isStacked then
|
||||||
|
Reference in New Issue
Block a user