Parcourir la source

* Fixed bug #12385

git-svn-id: trunk@12087 -
michael il y a 16 ans
Parent
commit
0d53564797
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      rtl/objpas/sysutils/sysstr.inc

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

@@ -2031,8 +2031,9 @@ Var
           Digits[DecimalPoint] := ' ';
           Digits[DecimalPoint] := ' ';
       { Convert spaces left from obligatory decimal point to zeroes. }
       { Convert spaces left from obligatory decimal point to zeroes. }
       I:=DecimalPoint-Placehold[2];
       I:=DecimalPoint-Placehold[2];
-      If (Value<0) and (I<DecimalPoint) then
+      If (Value<0) and (I<DecimalPoint) and (Digits[1]<>'-') then
         begin
         begin
+        Writeln('Inserting - at ',I);
         Insert('-',Digits,I);
         Insert('-',Digits,I);
         Inc(DecimalPoint);
         Inc(DecimalPoint);
         Inc(I);
         Inc(I);