mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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.)
|
+ (alwaysSeekSize / 2.)
|
||||||
+ value * (length - alwaysSeekSize))
|
+ value * (length - alwaysSeekSize))
|
||||||
: qRound(from + value * length);
|
: 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 end = from + length;
|
||||||
const auto activeFg = disabled
|
const auto activeFg = disabled
|
||||||
? _st.activeFgDisabled
|
? _st.activeFgDisabled
|
||||||
|
|
Loading…
Add table
Reference in a new issue