do not proceed with removing zero-length slice
(cherry picked from commit 036c3b4e6d
)
This commit is contained in:

committed by
Alexander Smorkalov

parent
f4ffcae8d9
commit
c7b471f10f
@@ -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;
|
||||||
|
Reference in New Issue
Block a user