1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-11 01:21:11 +02:00

Partial fix for bug 802.

This commit is contained in:
stevethefiddle@gmail.com 2014-12-21 18:57:25 +00:00
parent 00af97edd6
commit 86a71bd71b

View File

@ -1723,6 +1723,12 @@ bool AdornedRulerPanel::IsWithinMarker(int mousePosX, double markerTime)
void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
{
// Prevent accidentally stopping recording.
if (GetActiveProject()->GetControlToolBar()->IsRecordDown()) {
SetCursor(wxCursor(wxCURSOR_DEFAULT));
return;
}
bool isWithinStart = IsWithinMarker(evt.GetX(), mPlayRegionStart);
bool isWithinEnd = IsWithinMarker(evt.GetX(), mPlayRegionEnd);