Commit 5b9106f4 authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Fix the deletion of sub grids.

When deleting, it was possible to screw up the right most grid list.  Fix.


git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/branches/TableTool_refactor@8742 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent f771d3ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ function delete_cell( object, beneath_cell, the_cell )
        rmgc = object.right_most_grid_cells;
        object.right_most_grid_cells = [rmgc(1:top_rmgi-1) rmgc(bottom_rmgi+1:size(rmgc, 2))];
        
        if ~isempty(beneath_cell)
        if ~isempty(beneath_cell) && size(beneath_cell.grid, 2) == 0
            rmgc = object.right_most_grid_cells
            object.right_most_grid_cells = [rmgc(1:top_rmgi-1) {beneath_cell} rmgc(top_rmgi:size(rmgc, 2))];
            top_rmgi = top_rmgi + 1;