avoid division by zero

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764517
This commit is contained in:
İsmail Dönmez 2008-01-21 23:55:28 +00:00
parent 730266dc65
commit 251dd87666

View File

@ -277,7 +277,7 @@ void Phase::moveItem(QGraphicsItem* item, Movement movement, const QPoint &desti
}
int frames = d->animator->framesPerSecond(movement);
if (frames < 1) {
if (frames <= 1) {
// evidently this animator doesn't have an implementation
// for this Animation
return;