瀏覽代碼

* Fix bug ID #26944 (thousandseparator, patch from wp)

git-svn-id: trunk@33343 -
michael 9 年之前
父節點
當前提交
bcdfe055a8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/objpas/sysutils/sysstr.inc

+ 1 - 1
rtl/objpas/sysutils/sysstr.inc

@@ -1483,7 +1483,7 @@ Begin
         if Negative then
         if Negative then
           System.Delete(Result, 1, 1);
           System.Delete(Result, 1, 1);
         P := Pos('.', Result);
         P := Pos('.', Result);
-        If P <> 0 Then Result[P] := DS;
+        If P <> 0 Then Result[P] := DS else P := Length(Result)+1;
         Dec(P, 3);
         Dec(P, 3);
         While (P > 1) Do
         While (P > 1) Do
         Begin
         Begin