gnumeric r16615 - in branches/gnumeric-1-8: . src



Author: mortenw
Date: Wed May 28 00:36:51 2008
New Revision: 16615
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16615&view=rev

Log:
Fix fractional seconds.



Modified:
   branches/gnumeric-1-8/ChangeLog
   branches/gnumeric-1-8/src/stf-export.c

Modified: branches/gnumeric-1-8/src/stf-export.c
==============================================================================
--- branches/gnumeric-1-8/src/stf-export.c	(original)
+++ branches/gnumeric-1-8/src/stf-export.c	Wed May 28 00:36:51 2008
@@ -168,7 +168,7 @@
 
 	needs_date = is_date || v >= 1;
 	needs_time = is_time || gnm_abs (v - vr) > 1e-9;
-	needs_frac_sec = needs_time && gnm_abs (vs - gnm_fake_trunc (vs)) >= 0.5e-3;
+	needs_frac_sec = needs_time && gnm_abs (vs - gnm_fake_round (vs)) >= 0.5e-3;
 
 	xlfmt = g_string_new (NULL);
 	if (needs_date) g_string_append (xlfmt, "yyyy/mm/dd");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]