Explorar o código

* Fixed bug #12385

git-svn-id: trunk@12087 -
michael %!s(int64=16) %!d(string=hai) anos
pai
achega
0d53564797
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      rtl/objpas/sysutils/sysstr.inc

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

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