fixed multi-channel 1x1 array construction (ticket #1103)
This commit is contained in:
parent
b14ca4299a
commit
facbdc92cb
@ -111,9 +111,9 @@ public:
|
|||||||
_sizes[i] = sizes[i];
|
_sizes[i] = sizes[i];
|
||||||
if( cn > 1 )
|
if( cn > 1 )
|
||||||
{
|
{
|
||||||
if( _sizes[dims-1] == 1 )
|
/*if( _sizes[dims-1] == 1 )
|
||||||
_sizes[dims-1] = cn;
|
_sizes[dims-1] = cn;
|
||||||
else
|
else*/
|
||||||
_sizes[dims++] = cn;
|
_sizes[dims++] = cn;
|
||||||
}
|
}
|
||||||
PyObject* o = PyArray_SimpleNew(dims, _sizes, typenum);
|
PyObject* o = PyArray_SimpleNew(dims, _sizes, typenum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user