Commit b79f9b0b authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: PixmapAnimator: fix wrong iterator bound

parent b0dcc696
......@@ -116,7 +116,7 @@ public:
PixmapAnimator( QWidget *parent, QList<QString> _frames );
void setFps( int _fps ) { fps = _fps; interval = 1000.0 / fps; };
virtual int duration() const { return interval * pixmaps.count(); };
virtual ~PixmapAnimator() { while( pixmaps.count() ) pixmaps.erase( pixmaps.end() ); };
virtual ~PixmapAnimator() { qDeleteAll( pixmaps ); };
QPixmap *getPixmap() { return currentPixmap; }
protected:
virtual void updateCurrentTime ( int msecs );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment