From 251dd876663fba3f8b42b6b8db7e2dde57433c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20D=C3=B6nmez?= Date: Mon, 21 Jan 2008 23:55:28 +0000 Subject: [PATCH] avoid division by zero svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764517 --- phase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phase.cpp b/phase.cpp index 631b657c5..4aedc90f0 100644 --- a/phase.cpp +++ b/phase.cpp @@ -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;