Fix crash fix.

This commit is contained in:
John Preston 2021-06-26 12:33:18 +03:00
parent 9afee2620a
commit 48d482006a

View File

@ -269,8 +269,8 @@ void MediaSlider::paintEvent(QPaintEvent *e) {
+ value * (length - alwaysSeekSize))
: qRound(from + value * length);
const auto till = horizontal
? mid
: std::max(mid, qRound(from + receivedTill * length));
? std::max(mid, qRound(from + receivedTill * length))
: mid;
const auto end = from + length;
const auto activeFg = disabled
? _st.activeFgDisabled