mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +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;
|
slice.end_index = slice.start_index + length;
|
||||||
|
|
||||||
|
if ( slice.start_index == slice.end_index )
|
||||||
|
return;
|
||||||
|
|
||||||
if( slice.end_index < total )
|
if( slice.end_index < total )
|
||||||
{
|
{
|
||||||
CvSeqReader reader_to, reader_from;
|
CvSeqReader reader_to, reader_from;
|
||||||
|
Loading…
Reference in New Issue
Block a user