bug fix 3381

pull/2984/head
Camille 10 years ago
parent 0b4e043442
commit 46775ad186
  1. 2
      modules/core/include/opencv2/core/mat.hpp

@ -684,6 +684,8 @@ template<typename _Tp> inline void Mat::push_back(const _Tp& elem)
{
if( !data )
{
CV_Assert((type()==0) || (DataType<_Tp>::type == type()));
*this = Mat(1, 1, DataType<_Tp>::type, (void*)&elem).clone();
return;
}

Loading…
Cancel
Save