Modified xlhtml.c to not lose digits on whole numbers.

This commit is contained in:
slidedraw 2002-04-09 22:37:10 +00:00
parent ccacf8d04a
commit 1374f15231
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,5 @@
xlHtml ChangeLog xlHtml ChangeLog
0.4.9.4 0.4.9.4
*Fixed some memory leaks *Fixed some memory leaks
*Increased file name limit to 256 characters *Increased file name limit to 256 characters

View File

@ -3460,12 +3460,13 @@ static void output_formatted_data(uni_string *u, U16 idx, int numeric, int formu
} }
else else
{ {
num = atol((char *)u->str);
if (Csv) if (Csv)
printf("\"%.0g\"", dnum ); printf("%ld", num);
else if (OutputXML) else if (OutputXML)
printf("%.0g", dnum ); printf("%ld", num );
else else
printf("%.0g *", dnum ); printf("%ld *", num );
} }
/* printf(" F:%02X", idx); */ /* printf(" F:%02X", idx); */