mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 06:53:50 +08:00
do not proceed with removing zero-length slice
This commit is contained in:
parent
6fefc53e56
commit
036c3b4e6d
@ -1689,6 +1689,9 @@ cvSeqRemoveSlice( CvSeq* seq, CvSlice slice )
|
||||
|
||||
slice.end_index = slice.start_index + length;
|
||||
|
||||
if ( slice.start_index == slice.end_index )
|
||||
return;
|
||||
|
||||
if( slice.end_index < total )
|
||||
{
|
||||
CvSeqReader reader_to, reader_from;
|
||||
|
Loading…
Reference in New Issue
Block a user