Ver código fonte

* Fix bug ID #36425

git-svn-id: trunk@43678 -
michael 5 anos atrás
pai
commit
0b9b002807
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      rtl/objpas/sysutils/syssb.inc

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

@@ -68,7 +68,7 @@ procedure TStringBuilder.SetLength(AValue: Integer);
 begin
 begin
   CheckNegative(AValue,'AValue');
   CheckNegative(AValue,'AValue');
   CheckRange(AValue,0,MaxCapacity);
   CheckRange(AValue,0,MaxCapacity);
-  if AValue>Capacity then
+  While AValue>Capacity do
     Grow;
     Grow;
   Flength:=AValue;
   Flength:=AValue;
 end;
 end;