gnumeric r16580 - in trunk: . src



Author: jody
Date: Mon May 19 23:47:37 2008
New Revision: 16580
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16580&view=rev

Log:
    	* src/parse-util.c (r1c1_get_index) : handle =RC-10 as
    	      <ref "RC"><unary-><10> #533943


Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/src/parse-util.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon May 19 23:47:37 2008
@@ -5,6 +5,9 @@
 	* Fix LINEST and LOGREG crashes.  [#533263]
 	* Handle empty array.  [#533516]
 
+Jody:
+	* Fix R1C1 parsing of refs followed by subtraction. [#533943]
+
 Morten:
 	* Fix Excel export problem for strings that need quoting.  [#530704]
 	* Internal cleanup for analysis tools.  [#532210]

Modified: trunk/src/parse-util.c
==============================================================================
--- trunk/src/parse-util.c	(original)
+++ trunk/src/parse-util.c	Mon May 19 23:47:37 2008
@@ -535,6 +535,12 @@
 	str++;
 	if ((*relative = (*str == '[')))
 		str++;
+	else if (*str == '-' || *str == '+') { /* handle RC-10 as RC followed by -10 */
+		*relative = TRUE;
+		*num = 0;
+		return str;
+	}
+
 	errno = 0;
 	*num = strtol (str, &end, 10);
 	if (errno == ERANGE)



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