Skip to content

Commit

Permalink
Bug fix to load_imgs
Browse files Browse the repository at this point in the history
Previous update removed some necessary code.
  • Loading branch information
tsipkens committed Jun 19, 2024
1 parent 4275911 commit 2da7347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion +tools/load_imgs.m
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
pixpick = pixsize_end - 2; % initialize two before end
if pixpick < 3; pixsize_start = 1; end % then just select all text and continue

while isempty(pixsize_start)
while and(isempty(pixsize_start), pixpick > 0)
if isnan(str2double(o1.Text(pixpick))) &&...
(o1.Text(pixpick - 2) == ' ') ||...
(o1.Text(pixpick - 2) == newline) % search for newline or space
Expand Down

0 comments on commit 2da7347

Please sign in to comment.