Skip to content

Commit

Permalink
mark maps as used rather than relying solely on loop bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
coalsont committed May 9, 2022
1 parent 7df1926 commit 818bdbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions private/cifti_write_xml.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
if mapused(i)
continue;
end
mapused(i) = true; %for consistency
if i < 3 %NOTE: first and second dims are swapped compared to on disk, because of ciftiopen convention
appliesto = sprintf('%d', 2 - i); %NOTE: no, this isn't complex, and on disk needs 0-based numbers
else
Expand Down

0 comments on commit 818bdbd

Please sign in to comment.