Index: /branches/eam_branch_20081124/Ohana/src/libdvo/src/skyregion_gsc.c
===================================================================
--- /branches/eam_branch_20081124/Ohana/src/libdvo/src/skyregion_gsc.c	(revision 20919)
+++ /branches/eam_branch_20081124/Ohana/src/libdvo/src/skyregion_gsc.c	(revision 20920)
@@ -153,4 +153,8 @@
   skytable[0].Nregions = 0;
 
+  // L0, L1, L2, L3, L4 all have index ranges of 0 -> Nregions and parent values pointing
+  // at the index of the parent.  SkyTableAppend updates these values based on the
+  // cumulative count
+
   SkyTableAppend (skytable, &L0, 0);
   SkyTableAppend (skytable, &L1, skytable[0].Nregions - L0.Nregions);
@@ -539,5 +543,6 @@
   for (i = 0; i < new[0].Nregions; i++) {
     old[0].regions[i + Nold] = new[0].regions[i];
-    old[0].regions[i + Nold].parent += Nprev;
+    old[0].regions[i + Nold].parent += Nold;
+    old[0].regions[i + Nold].index += Nold;
   }
   return;
@@ -560,5 +565,3 @@
     notes and questions:
     1) is the regions.index value used?
-
-
 ***/
