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
1 changed files with 1 additions and 1 deletions

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() ?