Bug 77693 - SIGFPE crash when scrolling speed is set to 1
Summary: SIGFPE crash when scrolling speed is set to 1
Status: RESOLVED FIXED
Alias: None
Product: knewsticker
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Frerich Raabe
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-15 18:51 UTC by Staffan Palmroos
Modified: 2004-04-04 00:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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()));