Sfoglia il codice sorgente

--- Merging r36343 into '.':
U packages/rtl-objpas/src/inc/variants.pp
--- Recording mergeinfo for merge of r36343 into '.':
U .

# revisions: 36343

git-svn-id: branches/fixes_3_0@36366 -

marco 8 anni fa
parent
commit
ae0e1255bb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/rtl-objpas/src/inc/variants.pp

+ 1 - 1
packages/rtl-objpas/src/inc/variants.pp

@@ -3897,7 +3897,7 @@ begin
 
 
     index:=RequestedVarType-CMinVarType;
     index:=RequestedVarType-CMinVarType;
     if index>=L then
     if index>=L then
-      SetLength(customvarianttypes,L+1);
+      SetLength(customvarianttypes,index+1);
     if Assigned(customvarianttypes[index]) then
     if Assigned(customvarianttypes[index]) then
     begin
     begin
       if customvarianttypes[index]=InvalidCustomVariantType then
       if customvarianttypes[index]=InvalidCustomVariantType then