gnumeric r16614 - in trunk: . src



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

Log:
Fix fractional seconds.



Modified:
   trunk/ChangeLog
   trunk/src/stf-export.c

Modified: trunk/src/stf-export.c
==============================================================================
--- trunk/src/stf-export.c	(original)
+++ trunk/src/stf-export.c	Wed May 28 00:36:32 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]