@@ -284,7 +284,7 @@ static bool MoveGridInit (COMMAND_T* ct, bool init)
284284 if (init)
285285 {
286286 const int projgridframe = ConfigVar<int >(" projgridframe" ).value_or (0 );
287- MoveGridToMouseCommand cmd = (MoveGridToMouseCommand)ct->user ;
287+ MoveGridToMouseCommand cmd = (MoveGridToMouseCommand)ct->user ;
288288 if ((cmd == MOVE_GRID_TO_MOUSE || cmd == MOVE_M_GRID_TO_MOUSE ) && projgridframe&1 ) // frames grid line spacing
289289 {
290290 initSuccessful = false ;
@@ -345,12 +345,12 @@ static HCURSOR MoveGridCursor (COMMAND_T* ct, int window)
345345static bool EnsureTempoSet (int id)
346346{
347347 double timeposOut, beat, bpm;
348- int measure, num, den;
349- bool linear;
350- GetTempoTimeSigMarker (NULL , id, &timeposOut, &measure, &beat, &bpm, &num, &den, &linear);
351- // TODO is there any way to tell whether bpm has already been explicitly set by this point?
352- SetTempoTimeSigMarker (NULL , id, timeposOut, measure, beat, bpm, num, den, linear);
353- return true ;
348+ int measure, num, den;
349+ bool linear;
350+ GetTempoTimeSigMarker (NULL , id, &timeposOut, &measure, &beat, &bpm, &num, &den, &linear);
351+ // TODO is there any way to tell whether bpm has already been explicitly set by this point?
352+ SetTempoTimeSigMarker (NULL , id, timeposOut, measure, beat, bpm, num, den, linear);
353+ return true ;
354354}
355355
356356
@@ -367,7 +367,7 @@ static void MoveGridToMouse (COMMAND_T* ct)
367367 s_lockedId = -1 ;
368368 s_lastPosition = 0 ;
369369
370- // Make sure tempo map already has at least one point created (for some reason it won't work if creating it directly in chunk)
370+ // Make sure tempo map already has at least one point created (for some reason it won't work if creating it directly in chunk)
371371 if (cmd != MOVE_CLOSEST_TEMPO_MOUSE )
372372 {
373373 InitTempoMap ();
@@ -376,7 +376,7 @@ static void MoveGridToMouse (COMMAND_T* ct)
376376
377377 g_moveGridTempoMap = new (nothrow) BR_Envelope (GetTempoEnv ());
378378
379- // Make sure previous point is editable via g_moveGridTempoMap.
379+ // Make sure previous point is editable via g_moveGridTempoMap.
380380 if (g_moveGridTempoMap && cmd != MOVE_CLOSEST_TEMPO_MOUSE )
381381 {
382382 // ensure previous point's bpm is explicitly set, otherwise changes won't register in BR_Envelope.
@@ -385,7 +385,7 @@ static void MoveGridToMouse (COMMAND_T* ct)
385385 delete g_moveGridTempoMap;
386386 g_moveGridTempoMap = new (nothrow) BR_Envelope (GetTempoEnv ());
387387 }
388- }
388+ }
389389
390390 if (!g_moveGridTempoMap || !g_moveGridTempoMap->CountPoints () || g_moveGridTempoMap->IsLocked ())
391391 {
0 commit comments