Fixed minor glitch on audio display

Originally committed to SVN as r139.
This commit is contained in:
Rodrigo Braz Monteiro 2006-02-24 01:16:27 +00:00
parent b5388c3bf9
commit 2383c68bac

View file

@ -1070,6 +1070,12 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) {
bool shiftDown = event.m_shiftDown;
bool ctrlDown = event.m_controlDown;
// Leaving event
if (event.Leaving()) {
event.Skip();
return;
}
// Is inside?
bool inside = false;
if (x >= 0 && y >= 0 && x < w && y < h) {