Browse Source

* formatfloat patches for #8388 and 8386

git-svn-id: trunk@6697 -
marco 18 years ago
parent
commit
e56abc47b7
1 changed files with 5 additions and 3 deletions
  1. 5 3
      rtl/objpas/sysutils/sysstr.inc

+ 5 - 3
rtl/objpas/sysutils/sysstr.inc

@@ -1824,8 +1824,8 @@ Var
           Inc(Fmt);
           Inc(Fmt);
           End;
           End;
       Else
       Else
-        { This was 'if not SQ or DQ'. Looked wrong... }
-        If Not SQ Or DQ Then
+       { if not in quotes, then interpret}
+        If Not (SQ Or DQ) Then
           Begin
           Begin
           Case Fmt[0] Of
           Case Fmt[0] Of
             '0':
             '0':
@@ -1900,7 +1900,9 @@ Var
           Else { Case }
           Else { Case }
             Inc(Fmt);
             Inc(Fmt);
           End; { Case }
           End; { Case }
-          End; { Begin }
+          End  { Begin }
+        Else
+          Inc(Fmt); 
       End; { Case }
       End; { Case }
       End; { While .. Begin }
       End; { While .. Begin }
   End;
   End;