canvas: style, using braces with conditional

This commit is contained in:
Paul Davis 2022-09-03 16:20:41 -06:00
parent 2313e3d333
commit e5bf2b7ee8

View File

@ -691,7 +691,9 @@ Meter::set (float lvl, float peak)
float old_level = current_level;
float old_peak = current_peak;
if (pixwidth <= 0 || pixheight <=0) return;
if (pixwidth <= 0 || pixheight <=0) {
return;
}
if (peak == -1) {
if (lvl >= current_peak && lvl > 0) {