[PATCH] tiny gnumeric xml bug



A small bug in gnumeric/src/xml-io.c. The coordinate reading function
returns 0 most of the time, even on success. The patch fixes it.

Richard

Index: xml-io.c
===================================================================
RCS file: /cvs/gnome/gnumeric/src/xml-io.c,v
retrieving revision 1.36
diff -u -r1.36 xml-io.c
--- xml-io.c	1999/04/07 03:45:58	1.36
+++ xml-io.c	1999/04/07 23:44:39
@@ -205,7 +205,7 @@
 	res = sscanf (ret, "(%lf %lf)(%lf %lf)", x1, y1, x2, y2);
 	free(ret);
 	
-	if (res == 2) 
+	if (res == 4) 
 		return 1;
 
 	return 0;


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