Hello community,

here is the log from the commit of package kdetoys4 for openSUSE:Factory
checked in at Thu Apr 21 12:22:01 CEST 2011.



--------
--- KDE/kdetoys4/kdetoys4.changes       2011-04-01 15:17:55.000000000 +0200
+++ /mounts/work_src_done/STABLE/kdetoys4/kdetoys4.changes      2011-04-12 
16:22:43.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Apr 12 16:09:00 CEST 2011 - [email protected]
+
+- kteatime fix for 4.6.2
+  * fix pie drawing for times larger than e.g. 60 minutes
+  *  see https://bugs.kde.org/show_bug.cgi?id=217201
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  kteatime.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kdetoys4.spec ++++++
--- /var/tmp/diff_new_pack.ulYfPU/_old  2011-04-21 12:21:19.000000000 +0200
+++ /var/tmp/diff_new_pack.ulYfPU/_new  2011-04-21 12:21:19.000000000 +0200
@@ -24,9 +24,10 @@
 Summary:        Kdetoys Base Package
 Url:            http://www.kde.org
 Version:        4.6.2
-Release:        1
+Release:        3
 Source0:        kdetoys-%version.tar.bz2
 Patch:          4_5_BRANCH.diff
+Patch1:         kteatime.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %kde4_runtime_requires
 Suggests:       amor
@@ -45,6 +46,7 @@
 %prep
 %setup -q -n kdetoys-%version
 %patch
+%patch1 -p1
 
 %build
   %cmake_kde4 -d build

++++++ kteatime.diff ++++++
diff --git a/kteatime/src/toplevel.cpp b/kteatime/src/toplevel.cpp
index ca3b5ae..08b9228 100644
--- a/kteatime/src/toplevel.cpp
+++ b/kteatime/src/toplevel.cpp
@@ -246,7 +246,7 @@ void TopLevel::repaintTrayIcon()
 
         if( m_runningTeaTime > 0 ) {
             p.setBrush( QColor(255, 0, 0, 190) );
-            p.drawPie( rectangle, 90*16, -( 360*16 / m_runningTea.time() * 
m_runningTeaTime ) );
+           p.drawPie( rectangle, 90*16, -(360L * 16L * m_runningTeaTime) / 
m_runningTea.time() );
         }
         else if( (m_runningTeaTime * -1) % 2 == 0 ) {
            p.setBrush( QColor( 255, 0, 0, 190 ) );

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to