Skip to content

Commit

Permalink
Small fix for setting previously unset keys in the new Set_item method.
Browse files Browse the repository at this point in the history
  • Loading branch information
smokingdev committed May 23, 2012
1 parent 77b3f2f commit 7420806
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bsonDoc.pas
Expand Up @@ -207,6 +207,7 @@ procedure TBSONDocument.Set_Item(const Key: WideString; Value: OleVariant);
for i:=FElementIndex-1 downto FGotSorted do FSorted[i+1]:=FSorted[i];//Move?
FSorted[FGotSorted]:=FElementIndex;
FElements[FElementIndex].Key:=Key;
FGotIndex:=FElementIndex;
inc(FElementIndex);
end;
FElements[FGotIndex].Value:=Value;
Expand Down

0 comments on commit 7420806

Please sign in to comment.