Fix left-click check on audio display

Originally committed to SVN as r6189.
This commit is contained in:
Thomas Goyne 2011-12-30 15:52:04 +00:00
parent e34b401201
commit 3f9080bbee

View file

@ -1161,7 +1161,7 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event)
SetCursor(wxNullCursor);
}
if (event.ButtonDown(wxMOUSE_BTN_LEFT | wxMOUSE_BTN_RIGHT))
if (event.LeftDown() || event.RightDown())
{
int64_t samplepos = SamplesFromRelativeX(mousepos.x);
AudioMarker *marker = event.LeftDown() ?