Fix #8857: Remove snap from decision making about number of divisions
This commit is contained in:
parent
7fbe17c802
commit
e28eaa843d
@ -4383,22 +4383,15 @@ Editor::get_grid_beat_divisions (GridType gt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns the current musical grid divisiions using the supplied modifier mask from a GtkEvent.
|
/**
|
||||||
if the grid is non-musical, returns 0.
|
* Return the musical grid divisions
|
||||||
if the grid is snapped to bars, returns -1.
|
*
|
||||||
@param event_state the current keyboard modifier mask.
|
* @param event_state the current keyboard modifier mask.
|
||||||
*/
|
* @return Music grid beat divisions
|
||||||
|
*/
|
||||||
int32_t
|
int32_t
|
||||||
Editor::get_grid_music_divisions (Editing::GridType gt, uint32_t event_state)
|
Editor::get_grid_music_divisions (Editing::GridType gt, uint32_t event_state)
|
||||||
{
|
{
|
||||||
if (snap_mode() == SnapOff && !ArdourKeyboard::indicates_snap (event_state)) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (snap_mode() != SnapOff && ArdourKeyboard::indicates_snap (event_state)) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return get_grid_beat_divisions (gt);
|
return get_grid_beat_divisions (gt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user