oops, it did not erase, but it did not skip.

This commit is contained in:
Thai Pangsakulyanont
2011-09-16 21:15:47 +07:00
parent a03e6f0efa
commit 9164eccfde
+2 -1
View File
@@ -351,8 +351,9 @@ void TimingData::AddSegment( const TimingSegment *seg )
prev = vSegs[index - 1]; prev = vSegs[index - 1];
// if true, this is redundant segment change // if true, this is redundant segment change
if( prev != cur && (*prev) == (*seg) ) if( (*prev) == (*seg) )
{ {
if( prev != cur )
EraseSegment( vSegs, index, cur ); EraseSegment( vSegs, index, cur );
return; return;
} }