Fix stopping LimitedLoopsEmoji on last frame.
This commit is contained in:
parent
c006f8c304
commit
395795e37a
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ void LimitedLoopsEmoji::paint(QPainter &p, const Context &context) {
|
|||
context.internal.forceLastFrame = wasLast;
|
||||
} else if (_played + 1 == _limit && _inLoop && _stopOnLast) {
|
||||
const auto wasLast = context.internal.overrideFirstWithLastFrame;
|
||||
context.internal.overrideFirstWithLastFrame = true;
|
||||
_wrapped->paint(p, context);
|
||||
context.internal.overrideFirstWithLastFrame = wasLast;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue