Commit 57600b67 authored by sstucker's avatar sstucker
Browse files

GetWl no longer throws exception when user selects empty display item

parent b2205e30
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@ Lambda = maingui.dataTree.currElem.GetWls();

val = get(handles.listboxPlotWavelength, 'value');
strs = get(handles.listboxPlotWavelength, 'string');
if strs(val) == ""
    % If user selects an empty option
   return 
end
if isempty(strs)
    return;
end