Unverified Commit 252951c5 authored by stephen scott tucker's avatar stephen scott tucker Committed by GitHub
Browse files

Fixed crash on no-stim groups

parent 6f4686ab
Loading
Loading
Loading
Loading
+12 −13
Original line number Original line Diff line number Diff line
@@ -39,6 +39,7 @@ else
    Conc_enable  = false;
    Conc_enable  = false;
end
end


if ~isempty(maingui.dataTree.groups(1).CondNames) > 0  % If there is stim
    iCondGrp = get(handles.popupmenuConditions, 'value');
    iCondGrp = get(handles.popupmenuConditions, 'value');
    CondName = maingui.dataTree.groups(1).CondNames{iCondGrp};
    CondName = maingui.dataTree.groups(1).CondNames{iCondGrp};
    if ~isempty(maingui.dataTree.currElem.GetDodAvg(CondName)) || ~isempty(maingui.dataTree.currElem.GetDcAvg(CondName))
    if ~isempty(maingui.dataTree.currElem.GetDodAvg(CondName)) || ~isempty(maingui.dataTree.currElem.GetDcAvg(CondName))
@@ -51,6 +52,7 @@ if ~isempty(maingui.dataTree.currElem.GetDodAvg(CondName)) || ~isempty(maingui.d
                set(handles.radiobuttonPlotOD, 'value',1);
                set(handles.radiobuttonPlotOD, 'value',1);
            end
            end
        end
        end
    end
elseif raw_enable && raw_checked
elseif raw_enable && raw_checked
    set(handles.checkboxPlotHRF, 'enable','off');
    set(handles.checkboxPlotHRF, 'enable','off');
    set(handles.checkboxPlotHRF, 'value',0);
    set(handles.checkboxPlotHRF, 'value',0);
@@ -67,6 +69,3 @@ if isa(maingui.dataTree.currElem, 'RunClass')
        set(handles.radiobuttonPlotRaw, 'value',1)        
        set(handles.radiobuttonPlotRaw, 'value',1)        
    end
    end
end
end