[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma
From:       Andre Duffeck <andre () duffeck ! de>
Date:       2007-11-13 6:29:46
Message-ID: 1194935386.659291.32408.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 735966 by duffeck:

At least set an interval of 1 or it sometimes crashes with division by zero 


 M  +1 -0      phase.cpp  


--- trunk/KDE/kdebase/workspace/libs/plasma/phase.cpp #735965:735966
@@ -317,6 +317,7 @@
     state->currentFrame = 0;
     state->curve = curve;
     state->interval = duration / qreal(state->frames);
+    state->interval = qMax( 1, state->interval );
     state->interval = (state->interval / MIN_TICK_RATE) * MIN_TICK_RATE;
     state->currentInterval = state->interval;
     state->receiver = receiver;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic