From cd6c9834f61639afdab1db04cb6929d1f816f35d Mon Sep 17 00:00:00 2001 From: David Bailes Date: Tue, 23 May 2017 12:56:11 +0100 Subject: [PATCH] Clip move commands - minor fix. Forgot that the name of data members should begin with the letter m. Fixed this. --- src/Menus.cpp | 6 +++--- src/Menus.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Menus.cpp b/src/Menus.cpp index 556acfbb8..9eb057bcf 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -3084,11 +3084,11 @@ void AudacityProject::OnSelContractRight(const wxEvent * evt) void AudacityProject::DoClipLeftOrRight(bool right, bool keyUp ) { if (keyUp) { - nKeyDown = 0; + mNKeyDown = 0; return; } else - nKeyDown++; + mNKeyDown++; auto &panel = *GetTrackPanel(); @@ -3108,7 +3108,7 @@ void AudacityProject::DoClipLeftOrRight(bool right, bool keyUp ) // (multiple keydowns followed by a keyup) result in a single // entry in Audacity's history dialog. PushState(message, _("Time-Shift"), - nKeyDown == 1 ? UndoPush::MINIMAL : UndoPush::CONSOLIDATE); + mNKeyDown == 1 ? UndoPush::MINIMAL : UndoPush::CONSOLIDATE); } if ( amount == 0.0 ) diff --git a/src/Menus.h b/src/Menus.h index 03e2fa304..615093d20 100644 --- a/src/Menus.h +++ b/src/Menus.h @@ -161,7 +161,7 @@ void OnSelContractLeft(const wxEvent * evt); void OnSelContractRight(const wxEvent * evt); private: - int nKeyDown{}; + int mNKeyDown{}; public: void DoClipLeftOrRight(bool right, bool keyUp ); void OnClipLeft(const wxEvent* evt);