1
0
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:
Paul Licameli
2017-06-28 21:47:28 -04:00
parent f5b0afc2fc
commit c079544667
10 changed files with 13 additions and 29 deletions

View File

@@ -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 );