avoid division by zero
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764517
This commit is contained in:
parent
730266dc65
commit
251dd87666
@ -277,7 +277,7 @@ void Phase::moveItem(QGraphicsItem* item, Movement movement, const QPoint &desti
|
|||||||
}
|
}
|
||||||
|
|
||||||
int frames = d->animator->framesPerSecond(movement);
|
int frames = d->animator->framesPerSecond(movement);
|
||||||
if (frames < 1) {
|
if (frames <= 1) {
|
||||||
// evidently this animator doesn't have an implementation
|
// evidently this animator doesn't have an implementation
|
||||||
// for this Animation
|
// for this Animation
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user