[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: An internationalization patch of KSpread and KChart
From:       Toshitaka Fujioka <tositaka () soft ! kusa ! ac ! jp>
Date:       2000-12-03 3:30:30
[Download RAW message or body]

I'm very sorry.
A patch was wrong.
I will attach the patch which I revised.

Bye.



["koffice-kchart-i18n-20001203.diff" (text/plain)]

diff -ur koffice.org/kchart/parser.cc koffice/kchart/parser.cc
--- koffice.org/kchart/parser.cc	Sat Dec  2 20:55:33 2000
+++ koffice/kchart/parser.cc	Sun Dec  3 11:48:20 2000
@@ -212,8 +212,14 @@
 {
     res = 0;
     char ch = get_c();
-    if ( !isdigit(ch) )
-	return String;
+    int count = 0;
+    /*if ( !isdigit(ch) )
+	return String;*/
+    do {
+        if ( !isdigit(ch=get_c()) )
+	    return String;
+	count++;
+    } while ( count != (int)current->text.length() );
     do {
 	res = res*10 + ch - '0';
     } while (isdigit(ch=get_c()));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic