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

Clip move commands - minor fix.

Forgot that the name of data members should begin with the letter m. Fixed this.
This commit is contained in:
David Bailes 2017-05-23 12:56:11 +01:00
parent f46ac268f4
commit cd6c9834f6
2 changed files with 4 additions and 4 deletions

View File

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

View File

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