Skip to content

Fix crash when clicking on LFP viewer canvas with no channels#273

Merged
aacuevas merged 1 commit intoopen-ephys:developmentfrom
tne-lab:lfpviewer-no-chan-fix
Dec 11, 2018
Merged

Fix crash when clicking on LFP viewer canvas with no channels#273
aacuevas merged 1 commit intoopen-ephys:developmentfrom
tne-lab:lfpviewer-no-chan-fix

Conversation

@ethanbb
Copy link
Copy Markdown
Contributor

@ethanbb ethanbb commented Dec 10, 2018

This fixes a crash due to an out-of-bounds array access when clicking on a (blank) LFP Viewer canvas with no input channels. Previously, the LfpDisplay's mouseDown listener function would default to trying to select the 6th channel even though there are actually no channels to select. This function could probably be rewritten, which someone else is welcome to do before merging, but this is the minimal change to prevent this invalid behavior from happening.

@aacuevas aacuevas merged commit e72d57f into open-ephys:development Dec 11, 2018
@ethanbb ethanbb deleted the lfpviewer-no-chan-fix branch December 14, 2018 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants