fixed multi-channel 1x1 array construction (ticket #1103)

This commit is contained in:
Vadim Pisarevsky 2011-05-31 15:27:31 +00:00
parent b14ca4299a
commit facbdc92cb

View File

@ -111,9 +111,9 @@ public:
_sizes[i] = sizes[i];
if( cn > 1 )
{
if( _sizes[dims-1] == 1 )
/*if( _sizes[dims-1] == 1 )
_sizes[dims-1] = cn;
else
else*/
_sizes[dims++] = cn;
}
PyObject* o = PyArray_SimpleNew(dims, _sizes, typenum);