mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-29 08:43:56 +01:00
Defaulting TrackPanel cursor, status message; simplifies other code
This commit is contained in:
@@ -928,6 +928,10 @@ void TrackPanel::HandleMotion( const TrackPanelMouseState &tpmState )
|
||||
refreshCode |= code;
|
||||
mMouseOverUpdateFlags |= code;
|
||||
}
|
||||
if (!pCursor) {
|
||||
static wxCursor defaultCursor{ wxCURSOR_ARROW };
|
||||
pCursor = &defaultCursor;
|
||||
}
|
||||
mListener->TP_DisplayStatusMessage(tip);
|
||||
if (pCursor)
|
||||
SetCursor( *pCursor );
|
||||
|
||||
Reference in New Issue
Block a user