* Merging revisions 43678 from trunk:

------------------------------------------------------------------------
    r43678 | michael | 2019-12-12 16:07:46 +0100 (Thu, 12 Dec 2019) | 1 line
    
    * Fix bug ID #36425
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43679 -
This commit is contained in:
michael 2019-12-12 15:08:47 +00:00
parent f2f4a29dbb
commit e70f886f55

View File

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