Fixed invalidation of CrossLineAnimation.

This commit is contained in:
23rd 2021-02-01 09:26:02 +03:00
parent 52e1d6d740
commit 6acc6f0483
2 changed files with 2 additions and 1 deletions

View file

@ -98,6 +98,7 @@ void CrossLineAnimation::fillFrame(
void CrossLineAnimation::invalidate() { void CrossLineAnimation::invalidate() {
_completeCross = QImage(); _completeCross = QImage();
_completeCrossOverride = QImage(); _completeCrossOverride = QImage();
_strokePen = QPen(_st.fg, _st.stroke, Qt::SolidLine, Qt::RoundCap);
} }
} // namespace Ui } // namespace Ui

View file

@ -39,7 +39,7 @@ private:
const style::CrossLineAnimation &_st; const style::CrossLineAnimation &_st;
const bool _reversed; const bool _reversed;
const QPen _transparentPen; const QPen _transparentPen;
const QPen _strokePen; QPen _strokePen;
QLineF _line; QLineF _line;
QImage _frame; QImage _frame;
QImage _completeCross; QImage _completeCross;