Skip to content

Commit 314d94d

Browse files
committed
Fix bug when adding a Source input to LfpViewerAlpha with canvas open
2 parents d552bbd + 8df1753 commit 314d94d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Source/Plugins/LfpDisplayNodeAlpha/LfpDisplayCanvas.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ void LfpDisplayCanvas::update()
250250

251251
if (nChans != lfpDisplay->getNumChannels())
252252
{
253-
// std::cout << "Setting num inputs on LfpDisplayCanvas to " << nChans << std::endl;
254253

255254
refreshScreenBuffer();
256255

@@ -262,16 +261,11 @@ void LfpDisplayCanvas::update()
262261

263262
String chName = processor->getDataChannel(i)->getName();
264263

265-
//std::cout << chName << std::endl;
266-
267264
lfpDisplay->channelInfo[i]->setName(chName);
268265
lfpDisplay->setEnabledState(isChannelEnabled[i], i);
269266

270267
}
271268

272-
// if (nChans > 0)
273-
// lfpDisplay->setBounds(0,0,getWidth()-scrollBarThickness*2, lfpDisplay->getTotalHeight());
274-
// else
275269
if (nChans == 0) lfpDisplay->setBounds(0, 0, getWidth(), getHeight());
276270
else {
277271
lfpDisplay->rebuildDrawableChannelsList();

0 commit comments

Comments
 (0)