mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Merge pull request #12434 from alalek:pr12414_rebased
This commit is contained in:
commit
8e8315abfd
@ -228,7 +228,7 @@ void SparseMat::create(int d, const int* _sizes, int _type)
|
||||
}
|
||||
}
|
||||
int _sizes_backup[CV_MAX_DIM]; // #5991
|
||||
if (_sizes == hdr->size)
|
||||
if (hdr && _sizes == hdr->size)
|
||||
{
|
||||
for(int i = 0; i < d; i++ )
|
||||
_sizes_backup[i] = _sizes[i];
|
||||
|
Loading…
Reference in New Issue
Block a user