Skip to content
Snippets Groups Projects
Verified Commit bdf42640 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix bug where popupOptions variable doesn't exist

parent a290b22b
Branches
Tags
No related merge requests found
......@@ -186,16 +186,18 @@ handles.pushbuttonReset = uicontrol( ...
'HorizontalAlignment', 'left',...
'Visible', visible);
elseif strcmp(option_type, 'popupmenu')
tab_handles.values(ii) = uicontrol( ...
'Parent', tabs_panel, ...
'Style', 'popupmenu', ...
'String', popupOptions, ...
'Units', 'characters', 'BackgroundColor', special_color,...
'Position', [h_space*2+width_name new_top-ii*2 width_value 1.5], ...
'TooltipString', option_type,...
'Value', 1, ...
'HorizontalAlignment', 'left',...
'Visible', visible);
% commented in commit after a290b22 because `popupOptions`
% variable does not exist
% tab_handles.values(ii) = uicontrol( ...
% 'Parent', tabs_panel, ...
% 'Style', 'popupmenu', ...
% 'String', popupOptions, ...
% 'Units', 'characters', 'BackgroundColor', special_color,...
% 'Position', [h_space*2+width_name new_top-ii*2 width_value 1.5], ...
% 'TooltipString', option_type,...
% 'Value', 1, ...
% 'HorizontalAlignment', 'left',...
% 'Visible', visible);
elseif iscell(option_type)
tab_handles.values(ii) = uicontrol('Parent', tabs_panel, ...
'Style', 'popup',...
......@@ -251,7 +253,7 @@ handles.pushbuttonReset = uicontrol( ...
defaultString = group{ii,2};
if strcmp(option_type, 'popupmenu')
defaultString = popupOptions{userDefaultValue};
%defaultString = popupOptions{userDefaultValue};
end
if ~ischar(defaultString) && isnumeric(defaultString)
defaultString = num2str(defaultString);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment