Skip to content

Commit 98a3aa2

Browse files
committed
Add extra check for available channels in LfpViewer
1 parent d18d1c9 commit 98a3aa2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Plugins/LfpDisplayNode/LfpDisplay.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ void LfpDisplay::setNumChannels(int newChannelCount)
222222
void LfpDisplay::setColors()
223223
{
224224

225+
if (drawableChannels.size() == 0)
226+
return;
227+
225228
if (!getSingleChannelState())
226229
{
227230
for (int i = 0; i < drawableChannels.size(); i++)

0 commit comments

Comments
 (0)