discard the stored active tab rectangle if the animation is not running

BUG:225355

svn path=/trunk/KDE/kdelibs/; revision=1143717
This commit is contained in:
Marco Martin 2010-06-28 16:08:30 +00:00
parent 791fa67a23
commit 60b151b23e

View File

@ -232,7 +232,7 @@ void NativeTabBar::paintEvent(QPaintEvent *event)
// Drawing Tabborders
QRect movingRect;
if (d->currentAnimRect.isNull()) {
if (d->currentAnimRect.isNull() || !d->anim || d->anim.data()->state() != QAbstractAnimation::Running) {
movingRect = tabRect(currentIndex());
} else {
movingRect = d->currentAnimRect;