mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-16 06:03:49 +01:00
Bug 1819: Hover indication on note track channel toggle appears on all tracks (when they rerender)
This commit is contained in:
@@ -2164,7 +2164,8 @@ void TrackInfo::MidiControlsDrawFunction
|
||||
{
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
auto target = dynamic_cast<NoteTrackButtonHandle*>( context.target.get() );
|
||||
auto channel = target ? target->GetChannel() : -1;
|
||||
bool hit = target && target->GetTrack().get() == pTrack;
|
||||
auto channel = hit ? target->GetChannel() : -1;
|
||||
auto &dc = context.dc;
|
||||
wxRect midiRect = rect;
|
||||
GetMidiControlsHorizontalBounds(rect, midiRect);
|
||||
|
||||
Reference in New Issue
Block a user