Source

orange / source / orange / table.cpp

Diff from to

source/orange/table.cpp

     delete *ptr;
   memmove(ptr, ptr+1, sizeof(TExample **)*(_Last - ptr - 1));
   _Last--;
+
+  shrinkTable();
   examplesHaveChanged();
 }
 
 
 TExampleIterator TExampleTable::begin()
 {
-  return TExampleIterator(this, examples ? *examples : NULL, (void *)examples);
+  return TExampleIterator(this, (examples && examples != _Last) ? *examples : NULL, (void *)examples);
 }