canvas: style, using braces with conditional
This commit is contained in:
parent
2313e3d333
commit
e5bf2b7ee8
@ -691,7 +691,9 @@ Meter::set (float lvl, float peak)
|
|||||||
float old_level = current_level;
|
float old_level = current_level;
|
||||||
float old_peak = current_peak;
|
float old_peak = current_peak;
|
||||||
|
|
||||||
if (pixwidth <= 0 || pixheight <=0) return;
|
if (pixwidth <= 0 || pixheight <=0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (peak == -1) {
|
if (peak == -1) {
|
||||||
if (lvl >= current_peak && lvl > 0) {
|
if (lvl >= current_peak && lvl > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user