Skip to content

Commit a61c44c

Browse files
committed
Fix crash when LFP Viewer loses inputs while sorted by depth
1 parent 3431dc8 commit a61c44c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugins/LfpDisplayNode/LfpDisplay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ void LfpDisplay::rebuildDrawableChannelsList()
869869
}
870870
}
871871

872-
if (channelsOrderedByDepth)
872+
if (channelsOrderedByDepth && channelsToDraw.size() > 0)
873873
{
874874
LOGD("Sorting channels by depth.");
875875

0 commit comments

Comments
 (0)