Files
ladybird/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp
Julian Offenhäuser adb1c842c2 SoundPlayer: Fix logic bug in bars visualization
When calculating bar height, we clamp our values to the maximum
vertical height of the widget minus a margin. When the window was
resized such that the widget got smaller than this margin however,
our maximum height became negative. This caused a crash in clamp().
2023-02-09 19:41:54 +01:00

5.2 KiB