Bug 77693

Summary: SIGFPE crash when scrolling speed is set to 1
Product: knewsticker Reporter: Staffan Palmroos <spalmroos>
Component: generalAssignee: Frerich Raabe <raabe>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Staffan Palmroos 2004-03-15 18:51:36 UTC
Version:           v0.2 (using KDE KDE 3.2.1)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) 
OS:          Linux

If I set the scrolling speed to 1 (lowest) and use the "Temporarily slowed scrolling" feature the applet crashes with a SIGFPE when I move the mouse over it.
Unfortunately I have no useful backtrace to add.
Comment 1 Frerich Raabe 2004-04-04 00:46:13 UTC
CVS commit by raabe: 

- Don't crash with a SIGFPE if 'Temporarily slowed scrolling' is enabled and
  the scrolling speed is set to the lowest value.
CCMAIL:77693-done@bugs.kde.org


  M +2 -2      newsscroller.cpp   1.99


--- kdenetwork/knewsticker/newsscroller.cpp  #1.98:1.99
@@ -266,5 +266,5 @@ void NewsScroller::scroll(int distance, 
 void NewsScroller::enterEvent(QEvent *)
 {
-        if (m_cfg->slowedScrolling())
+        if (m_cfg->slowedScrolling() && m_cfg->scrollingSpeed() > 1)
                 m_scrollTimer->changeInterval(speedAsInterval(m_cfg->scrollingSpeed() / 2));
 }
@@ -357,5 +357,5 @@ void NewsScroller::wheelEvent(QWheelEven
 void NewsScroller::leaveEvent(QEvent *)
 {
-        if (m_cfg->slowedScrolling())
+        if (m_cfg->slowedScrolling() && m_cfg->scrollingSpeed() > 1)
                 m_scrollTimer->changeInterval(speedAsInterval(m_cfg->scrollingSpeed()));