goffice r2284 - in branches/goffice-0-6: . goffice/utils



Author: mortenw
Date: Mon Dec  8 14:23:14 2008
New Revision: 2284
URL: http://svn.gnome.org/viewvc/goffice?rev=2284&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:
   branches/goffice-0-6/ChangeLog
   branches/goffice-0-6/NEWS
   branches/goffice-0-6/goffice/utils/go-format.c

Modified: branches/goffice-0-6/NEWS
==============================================================================
--- branches/goffice-0-6/NEWS	(original)
+++ branches/goffice-0-6/NEWS	Mon Dec  8 14:23:14 2008
@@ -9,6 +9,7 @@
 
 Morten:
 	* Fix go_url_resolve_relative.  [#550898]
+	* Fix problem with formats like "0.0E-00".  [#563601]
 
 --------------------------------------------------------------------------
 goffice 0.6.5:

Modified: branches/goffice-0-6/goffice/utils/go-format.c
==============================================================================
--- branches/goffice-0-6/goffice/utils/go-format.c	(original)
+++ branches/goffice-0-6/goffice/utils/go-format.c	Mon Dec  8 14:23:14 2008
@@ -1541,6 +1541,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]