goffice r2283 - in trunk: . goffice/utils



Author: mortenw
Date: Mon Dec  8 14:22:15 2008
New Revision: 2283
URL: http://svn.gnome.org/viewvc/goffice?rev=2283&view=rev

Log:
2008-12-08  Morten Welinder  <terra gnome org>

	* goffice/utils/go-format.c (go_format_parse_number_E): Handle
	E-00 as well as E+00.



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/goffice/utils/go-format.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Dec  8 14:22:15 2008
@@ -1,6 +1,7 @@
 goffice 0.7.3:
 
 ATTENTION PACKAGERS: goffice no longer depends on libgnome and libgnomeui.
+ATTENTION PACKAGERS: goffice no longer depends on gnome-vfs.
 
 Halton Huo:
 	* Add --without-long-double option.  [#557045]
@@ -16,6 +17,7 @@
 Morten:
 	* Plug leaks.
 	* Fix memory corruption issue.  [#561708]
+	* Fix problem with formats like "0.0E-00".  [#563601]
 
 --------------------------------------------------------------------------
 goffice 0.7.2:

Modified: trunk/goffice/utils/go-format.c
==============================================================================
--- trunk/goffice/utils/go-format.c	(original)
+++ trunk/goffice/utils/go-format.c	Mon Dec  8 14:22:15 2008
@@ -1554,6 +1554,11 @@
 	if (tno_exp_start >= tno_end)
 		return NULL;
 	switch (GET_TOKEN (pstate->tno_E + 1).token) {
+	case '-':
+		use_markup = FALSE;
+		simplify_mantissa = FALSE;
+		pstate->forced_exponent_sign = FALSE;
+		break;
 	case '+':
 		use_markup = FALSE;
 		simplify_mantissa = FALSE;



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