mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
add braces as per coding guide
This commit is contained in:
parent
6fec78221f
commit
04635896d4
1 changed files with 3 additions and 3 deletions
|
|
@ -2998,11 +2998,11 @@ Editor::snap_to_internal (MusicSample& start, RoundMode direction, SnapPref pref
|
|||
prev--;
|
||||
}
|
||||
|
||||
if ((direction == RoundUpMaybe || direction == RoundUpAlways))
|
||||
if ((direction == RoundUpMaybe || direction == RoundUpAlways)) {
|
||||
test = *next;
|
||||
else if ((direction == RoundDownMaybe || direction == RoundDownAlways))
|
||||
} else if ((direction == RoundDownMaybe || direction == RoundDownAlways)) {
|
||||
test = *prev;
|
||||
else if (direction == 0) {
|
||||
} else if (direction == 0) {
|
||||
if ((presnap - *prev) < (*next - presnap)) {
|
||||
test = *prev;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue