LinearSpectrum: minimum 1px height

This commit is contained in:
quadbyte 2025-08-15 15:51:11 -04:00
parent fd890f4293
commit 9298f37b38

View file

@ -21,7 +21,7 @@ Item {
antialiasing: true antialiasing: true
width: xScale * 0.5 width: xScale * 0.5
height: root.height * amp height: Math.max(1, root.height * amp)
x: index * xScale x: index * xScale
y: root.height - height y: root.height - height
} }
@ -38,7 +38,7 @@ Item {
antialiasing: true antialiasing: true
width: xScale * 0.5 width: xScale * 0.5
height: root.height * amp height: Math.max(1, root.height * amp)
x: (values.length + index) * xScale x: (values.length + index) * xScale
y: root.height - height y: root.height - height
} }