harvester/common/inc/harvestdata.inl
changeset 20 6dfc5f825351
parent 0 c53acadfccc6
child 40 910a23996aa0
--- a/harvester/common/inc/harvestdata.inl	Tue Feb 02 00:24:33 2010 +0200
+++ b/harvester/common/inc/harvestdata.inl	Fri Mar 19 09:38:01 2010 +0200
@@ -101,6 +101,21 @@
     iMdeObjectArray.Remove( aIndex );
     iLocationArray.Remove( aIndex );
     iQueryArray.Remove( aIndex );
+    
+    if( iMdeObjectArray.Count() == 0 )
+        {
+        iMdeObjectArray.Compress();
+        }
+
+    if( iLocationArray.Count() == 0 )
+        {
+        iLocationArray.Compress();
+        }
+
+    if( iQueryArray.Count() == 0 )
+        {
+        iQueryArray.Compress();
+        }    
     }
 
 // ---------------------------------------------------------------------------