Index: i18npool/source/nativenumber/nativenumbersupplier_th.cxx
===================================================================
RCS file: /cvsroot/thaioo/OpenOffice_Test/i18npool/source/nativenumber/nativenumbersupplier_th.cxx,v
retrieving revision 1.1
diff -a -u -r1.1 nativenumbersupplier_th.cxx
--- i18npool/source/nativenumber/nativenumbersupplier_th.cxx	21 Sep 2004 10:36:33 -0000	1.1
+++ i18npool/source/nativenumber/nativenumbersupplier_th.cxx	27 Sep 2004 10:14:53 -0000
@@ -323,7 +323,8 @@
 		}
 
 		sal_Unicode FractionNumber[MAX_NUMBER_CHARACTOR];
-		sal_Int32 fCount;
+		sal_Unicode ExtendNumber[10];
+		sal_Int32 fCount, eCount;
 		sal_Bool firstZero = true;
 		// clear fraction variable		
 		for (i = 0; i< (nCount - decpoint); i++) {
@@ -355,14 +356,40 @@
 			thaitext += numTextThaiCurrency2;
 			
 		else {
+			// fix 2 point of THAI currency Faction
+			// if more than 2, cutting to extend and use normal translation
+			eCount = 0;
+			if (fCount > 3)
+			{
+				//eCount = 0;		
+				// clear variable		
+				for (i = 0; i < 10; i++)
+					ExtendNumber[i] = 0x030;
+				
+				// find extend value section from string
+				for (i = 3; i < fCount; i++) {
+						ExtendNumber[eCount] = FractionNumber[i];
+						eCount++;
+				}
+				fCount = 3;
+			}
+			
 			// convert number to thai text in decimal section
 			sal_Int32 j = 1;
-	        for (i = decpoint + 1; i < nCount; i++) {
+	        	for (i = decpoint + 1; i < nCount; i++) {
 				if (j < fCount) {
 					thaitext += convertThaiTextRead(FractionNumber[j], fCount - j, fCount -1);
 					j++;
 				}
 			}
+			
+			// display extend number
+			if ( eCount > 0) {
+				thaitext += numTextThaiDecPoint;
+				for (i = 0; i < eCount; i++)
+					thaitext += convertThaiTextNum(ExtendNumber[i]);
+			}
+			
 			// put a thai Currency unit ('Sa-Tang')
 			thaitext += numTextThaiCurrency1;
 		}
