fpspreadsheet: Improved conversion of numbers to formatted strings, handles more special cases (e.g. integer-only fractions, optional digits, optional space digits).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4094 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2015-04-22 18:48:08 +00:00
parent 3f6f45f65a
commit c2dd60bb18
4 changed files with 581 additions and 526 deletions

View File

@ -1031,6 +1031,7 @@ begin
decs := Worksheet.GetDisplayedDecimals(ACell)
else
decs := FDecimals;
inc(decs, FDelta);
if decs < 0 then decs := 0;
Worksheet.WriteDecimals(ACell, decs);