do not proceed with removing zero-length slice

pull/5371/head
Elena Shipunova 9 years ago committed by Dikay900
parent 05b1636780
commit 5de01fde53
  1. 3
      modules/core/src/datastructs.cpp

@ -1695,6 +1695,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