mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix crash in vertical sliders.
Regression was introduced in 90ff8ecd0f
.
This commit is contained in:
parent
baca3047d4
commit
9afee2620a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue