Skip to content

Commit

Permalink
Bugfix: At PlotCoordinate when deleting last point
Browse files Browse the repository at this point in the history
Introduced in: 6c646d2
Reported in: https://neuroimage.usc.edu/forums/t/49335

Debugged and tests: @Moo-Marc and @rcassani
  • Loading branch information
rcassani committed Dec 11, 2024
1 parent 4f6578c commit 10c902a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toolbox/sensors/panel_digitize_2024.m
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,7 @@ function PlotCoordinate(isAdd)
GlobalData.DataSet(Digitize.iDS).HeadPoints.Type{iP} = Digitize.Points(Digitize.iPoint).Type; % 'CARDINAL' or 'EXTRA'
GlobalData.DataSet(Digitize.iDS).HeadPoints.Loc(:,iP) = Digitize.Points(Digitize.iPoint).Loc';
else
iP = iP - 1;
if iP > 0
GlobalData.DataSet(Digitize.iDS).HeadPoints.Label(iP) = [];
GlobalData.DataSet(Digitize.iDS).HeadPoints.Type(iP) = [];
Expand Down

0 comments on commit 10c902a

Please sign in to comment.