Fix crash in vertical sliders.

Regression was introduced in 90ff8ecd0f.
This commit is contained in:
John Preston 2021-06-26 08:20:37 +03:00
parent baca3047d4
commit 9afee2620a
1 changed files with 3 additions and 1 deletions

View File

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