diff --git a/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp b/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp index b9b5eb273..6b7c19e21 100644 --- a/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp +++ b/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp @@ -3033,6 +3033,11 @@ bool LfpDisplay::getSingleChannelState() void LfpDisplay::mouseDown(const MouseEvent& event) { + if (drawableChannels.isEmpty()) + { + return; + } + //int y = event.getMouseDownY(); //relative to each channel pos MouseEvent canvasevent = event.getEventRelativeTo(viewport); int y = canvasevent.getMouseDownY() + viewport->getViewPositionY(); // need to account for scrolling