do not proceed with removing zero-length slice

(cherry picked from commit 036c3b4e6d)
pull/5378/merge
Elena Shipunova 10 years ago committed by Alexander Smorkalov
parent f4ffcae8d9
commit c7b471f10f
  1. 3
      modules/core/src/datastructs.cpp

@ -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…
Cancel
Save