Skip to content

Commit b96cd4f

Browse files
authored
Merge pull request #68 from talos-gis/master_upstream
PyEngine.pas - ArrayVarDim3 bugfix
2 parents b959c12 + 8cc6568 commit b96cd4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5801,7 +5801,7 @@ function TPythonEngine.VariantAsPyObject( const V : Variant ) : PPyObject;
58015801
for j := VarArrayLowBound( DeRefV, 2 ) to VarArrayHighBound( DeRefV, 2 ) do
58025802
begin
58035803
L2 := PyList_New( VarArrayHighBound( DeRefV, 3 ) - VarArrayLowBound( DeRefV, 3 ) + 1 );
5804-
PyList_SetItem( Result, cpt2, L );
5804+
PyList_SetItem( L, cpt2, L2 );
58055805
cpt3 := 0;
58065806
for k := VarArrayLowBound( DeRefV, 3 ) to VarArrayHighBound( DeRefV, 3 ) do
58075807
begin

0 commit comments

Comments
 (0)