Skip to content

Commit 2713811

Browse files
authored
Merge pull request #220 from tne-lab/lfp-load-bug-fix
Fix bug when loading LFP viewer with no channels
2 parents acac147 + 18d3ca8 commit 2713811

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,11 @@ void LfpDisplayCanvas::update()
313313
lfpDisplay->channelInfo[i]->updateType();
314314
}
315315

316-
if (nChans > 0)
317-
std::cout << "Rebuilding drawable channels" << std::endl;
316+
if (nChans > 0)
317+
{
318+
std::cout << "Rebuilding drawable channels" << std::endl;
318319
lfpDisplay->rebuildDrawableChannelsList();
320+
}
319321
}
320322

321323
}

0 commit comments

Comments
 (0)