Skip to content

Commit

Permalink
Allow protocol overlays and spectrograms to be stacked regardless of …
Browse files Browse the repository at this point in the history
…which one is being dragged
  • Loading branch information
azonenberg committed Jan 31, 2024
1 parent eb32f9c commit 40ac34d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ngscopeclient/WaveformArea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3654,9 +3654,14 @@ bool WaveformArea::IsCompatible(StreamDescriptor desc)

switch(desc.GetType())
{
//All density plots must be in their own views and cannot stack
case Stream::STREAM_TYPE_EYE:
//Allow stacking protocol overlays on spectrograms
case Stream::STREAM_TYPE_SPECTROGRAM:
if( (GetFirstAnalogStream() == nullptr) && (GetFirstDensityFunctionStream() == nullptr) )
return true;
break;

//All other density plots must be in their own views and cannot stack
case Stream::STREAM_TYPE_EYE:
case Stream::STREAM_TYPE_WATERFALL:
return false;

Expand Down

0 comments on commit 40ac34d

Please sign in to comment.