File kdelibs3-gcc-4.1-miscompile.diff of Package kdelibs3

Index: kdecore/kwinmodule.cpp
===================================================================
--- kdecore/kwinmodule.cpp	(revision 502575)
+++ kdecore/kwinmodule.cpp	(working copy)
@@ -393,7 +393,9 @@ QRect KWinModule::workArea( const QValue
 	if ( strut.bottom > 0  )
 	    r.setBottom( r.bottom() - (int) strut.bottom );
 
-	a = a.intersect(r);
+        QRect tmp;
+	tmp = a.intersect(r);
+        a = tmp;
     }
     return a;
 }
openSUSE Build Service is sponsored by