get_parent(); $cellmap = $parent->get_cellmap(); $iter = $child; while ($iter) { $cellmap->remove_row($iter); $iter = $iter->get_next_sibling(); } // Remove all subsequent row groups from the cellmap $iter = $this->get_next_sibling(); while ($iter) { $cellmap->remove_row_group($iter); $iter = $iter->get_next_sibling(); } // If we are splitting at the first child remove the // table-row-group from the cellmap as well if ($child === $this->get_first_child()) { $cellmap->remove_row_group($this); parent::split(null, $page_break, $forced); return; } $cellmap->update_row_group($this, $child->get_prev_sibling()); parent::split($child, $page_break, $forced); } }