We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63f3dae + 4a1932c commit 621075bCopy full SHA for 621075b
1 file changed
MASH-FRET/source/project/setcurrproj.m
@@ -11,9 +11,9 @@ function setcurrproj(h_fig)
11
12
% modify current project index if it is out of range of the list
13
nProj = numel(p.proj);
14
-if p.curr_proj>nProj
+if nProj>0 && p.curr_proj>nProj
15
setContPan(['Current project index is out of range: it will now be ',...
16
'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);
+ set(h.listbox_proj,'value',nProj)
+ listbox_projLst_Callback(h.listbox_proj,[],h_fig);
19
end
0 commit comments