From f771d3ac59620899622ecfcd1718e5a9a7fc12c0 Mon Sep 17 00:00:00 2001 From: Matthew Dawson Date: Thu, 16 Aug 2012 17:31:59 +0000 Subject: [PATCH] Fix the text in the vertical list. The text in the vertical list were pulled from the first element. Make it read from the appropriate one. git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/branches/TableTool_refactor@8741 57e6efec-57d4-0310-aeb1-a6c144bb1a8b --- @VerticalHierarchicalGridDraw/draw_onto.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@VerticalHierarchicalGridDraw/draw_onto.m b/@VerticalHierarchicalGridDraw/draw_onto.m index 7cc7f16..78885f6 100644 --- a/@VerticalHierarchicalGridDraw/draw_onto.m +++ b/@VerticalHierarchicalGridDraw/draw_onto.m @@ -42,7 +42,7 @@ function [height, grid_controls, cell_controls] = draw_onto( object, parent_hand height = height + new_height; %Kill the direct access here. - str = grid{1}.get_user_string(); + str = grid{i}.get_user_string(); grid_controls{i}.control = uicontrol(parent_handle, 'Style', 'edit', 'Position', [depth*object.gui_params.edit_width, y-((height+start_height)), object.gui_params.edit_width, new_height], 'String', str, 'Callback', @(src,event)GUIHelpers.update_cell(src, event, grid{i})); if size(grid{i}.grid, 2) == 0 -- GitLab