Skip to content

Commit 13d6c1b

Browse files
point counter behaviour
1 parent 3cafbbb commit 13d6c1b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Browsing Functions/sliceBrowser.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ function SliceAtlasHotkeyFcn(fig, keydata, f)
172172
title_ending = ' (transform points loaded)';
173173
end
174174
end
175-
set(ud.pointHands(:), 'Visible', 'off'); %Hide because not in 't' mode
176-
175+
if ud.getPoint
176+
set(ud.pointHands(:), 'Visible', 'on');
177+
ud.pointsText.String = sprintf('%d point(s)', length(ud.pointHands));
178+
else
179+
set(ud.pointHands(:), 'Visible', 'off'); %Hide because not in 't' mode
180+
ud.pointsText.String = sprintf('%d point(s)', length(ud.pointHands));
181+
end
177182
title(['Slice Viewer -- Slice ' num2str(ud.slice_num) '/' num2str(ud.total_num_files) title_ending])

0 commit comments

Comments
 (0)