}
else
{
- if( rows == 1 ) _step = minstep;
CV_DbgAssert( _step >= minstep );
if (_step % esz1 != 0)
CV_Error(Error::BadStep, "Step must be a multiple of esz1");
}
- flags |= _step == minstep ? CONTINUOUS_FLAG : 0;
+ if (_step == minstep || rows == 1)
+ flags |= CONTINUOUS_FLAG;
}
step[0] = _step;
step[1] = esz;
}
else
{
- if( rows == 1 ) _step = minstep;
CV_DbgAssert( _step >= minstep );
if (_step % esz1 != 0)
CV_Error(Error::BadStep, "Step must be a multiple of esz1");
}
- flags |= _step == minstep ? CONTINUOUS_FLAG : 0;
+ if (_step == minstep || rows == 1)
+ flags |= CONTINUOUS_FLAG;
}
step[0] = _step;
step[1] = esz;