浏览代码

Merge pull request #2539 from WizardCM/clipping-visual-fix

UI: Don't clip meters when resizing with no input
Jim 5 年之前
父节点
当前提交
2b06495d1b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UI/volume-control.cpp

+ 1 - 1
UI/volume-control.cpp

@@ -875,7 +875,7 @@ void VolumeMeter::paintHMeter(QPainter &painter, int x, int y, int width,
 		painter.fillRect(peakPosition, y,
 				 maximumPosition - peakPosition, height,
 				 backgroundErrorColor);
-	} else {
+	} else if (int(magnitude) != 0) {
 		if (!clipping) {
 			QTimer::singleShot(CLIP_FLASH_DURATION_MS, this,
 					   SLOT(ClipEnding()));