Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/devel' into MMSdevel
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-nilsson-irfu committed Dec 13, 2024
2 parents 323c029 + 66b7904 commit fff2bdf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions irf/irf_fromto.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ function irf_fromto(fromto)
ud.from = 1;
end
case 'from'
% We have changed "From", use the "Step" value and update "To" value
% with newly provided "From" value
[tlim, step]= get_fromto(ud);
if tlim(1) > tlim(2)
tlim(2)=tlim(1)+step;
else
tlim(2)=tlim(1)+step;
end
tlim(2) = tlim(1) + step;
update_fromto(ud,tlim);
case 'to'
[tlim, step]= get_fromto(ud);
Expand All @@ -77,6 +75,8 @@ function irf_fromto(fromto)
end
update_fromto(ud,tlim);
case 'step'
% We have changed "Step", use the "From" value and update "To" value
% with newly provided "Step" value
[tlim, step]=get_fromto(ud);
tlim(2) = tlim(1)+step;
update_fromto(ud,tlim);
Expand Down

0 comments on commit fff2bdf

Please sign in to comment.