mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
bug fix 3381
This commit is contained in:
parent
46775ad186
commit
5a5a487612
@ -684,7 +684,7 @@ template<typename _Tp> inline void Mat::push_back(const _Tp& elem)
|
||||
{
|
||||
if( !data )
|
||||
{
|
||||
CV_Assert((type()==0) || (DataType<_Tp>::type == type()));
|
||||
CV_Assert((type()==0) || (DataType<_Tp>::type == type()));
|
||||
|
||||
*this = Mat(1, 1, DataType<_Tp>::type, (void*)&elem).clone();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user