From 8cc656809203930ba54ce5c27e217155bd74bb53 Mon Sep 17 00:00:00 2001 From: Idan Miara Date: Thu, 17 Jan 2019 18:06:04 +0200 Subject: [PATCH] PyEngine.pas - ArrayVarDim3 bugfix --- PythonForDelphi/Components/Sources/Core/PythonEngine.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonForDelphi/Components/Sources/Core/PythonEngine.pas b/PythonForDelphi/Components/Sources/Core/PythonEngine.pas index a4a6ac37..4e42a536 100644 --- a/PythonForDelphi/Components/Sources/Core/PythonEngine.pas +++ b/PythonForDelphi/Components/Sources/Core/PythonEngine.pas @@ -5801,7 +5801,7 @@ function TPythonEngine.VariantAsPyObject( const V : Variant ) : PPyObject; for j := VarArrayLowBound( DeRefV, 2 ) to VarArrayHighBound( DeRefV, 2 ) do begin L2 := PyList_New( VarArrayHighBound( DeRefV, 3 ) - VarArrayLowBound( DeRefV, 3 ) + 1 ); - PyList_SetItem( Result, cpt2, L ); + PyList_SetItem( L, cpt2, L2 ); cpt3 := 0; for k := VarArrayLowBound( DeRefV, 3 ) to VarArrayHighBound( DeRefV, 3 ) do begin