Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ function delete_cell( object, beneath_cell, the_cell ) ...@@ -28,7 +28,7 @@ function delete_cell( object, beneath_cell, the_cell )
rmgc = object.right_most_grid_cells; rmgc = object.right_most_grid_cells;
object.right_most_grid_cells = [rmgc(1:top_rmgi-1) rmgc(bottom_rmgi+1:size(rmgc, 2))]; 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 rmgc = object.right_most_grid_cells
object.right_most_grid_cells = [rmgc(1:top_rmgi-1) {beneath_cell} rmgc(top_rmgi:size(rmgc, 2))]; object.right_most_grid_cells = [rmgc(1:top_rmgi-1) {beneath_cell} rmgc(top_rmgi:size(rmgc, 2))];
top_rmgi = top_rmgi + 1; top_rmgi = top_rmgi + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment