Prevent excessive meter redraws for inactive meters at zero
[ardour.git] / libs / widgets / fastmeter.cc
index cf1d9dd070e5da95f4d7e7c57d448920fc4b4fa5..a9ecf5dad660a844a7d91b0db5bb1383d08d25d4 100644 (file)
@@ -703,7 +703,7 @@ FastMeter::set (float lvl, float peak)
        if (pixwidth <= 0 || pixheight <=0) return;
 
        if (peak == -1) {
-               if (lvl >= current_peak) {
+               if (lvl >= current_peak && lvl > 0) {
                        current_peak = lvl;
                        hold_state = hold_cnt;
                }