Skip to content

Commit 621075b

Browse files
committed
Merge branch 'master' of https://github.com/RNA-FRETools/MASH-FRET into autosort-snr
2 parents 63f3dae + 4a1932c commit 621075b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

MASH-FRET/source/project/setcurrproj.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ function setcurrproj(h_fig)
1111

1212
% modify current project index if it is out of range of the list
1313
nProj = numel(p.proj);
14-
if p.curr_proj>nProj
14+
if nProj>0 && p.curr_proj>nProj
1515
setContPan(['Current project index is out of range: it will now be ',...
1616
'set to the last index in list.'],'warning',h_fig);
17-
set(h.listbox_projLst,'value',nProj)
18-
listbox_projLst_Callback(h.listbox_projLst,[],h_fig);
17+
set(h.listbox_proj,'value',nProj)
18+
listbox_projLst_Callback(h.listbox_proj,[],h_fig);
1919
end

0 commit comments

Comments
 (0)