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

List:       kde-commits
Subject:    kdebase/kicker/buttons
From:       Maks Orlovich <mo002j () mail ! rochester ! edu>
Date:       2002-02-25 4:34:16
[Download RAW message or body]


kdebase/kicker/buttons panelbuttonbase.cpp,1.3,1.4
Author: orlovich
Mon Feb 25 05:34:16 CET 2002
In directory office:/tmp/cvs-serv6554


Modified Files:
         panelbuttonbase.cpp
Log Message:

Fix crashes when icon zooming is on with bg image or bgbrush-setting style.
Safe since if parent() is 0, it is guaranteed to crash a few lines down when doing \
parent()->x() or parent()->y()



--- panelbuttonbase.cpp	2002/01/10 01:52:43	1.3
+++ panelbuttonbase.cpp	2002/02/25 04:28:47
@@ -353,7 +353,7 @@ void PanelButtonBase::setBackground()
 	QPixmap* containerBG = bgBrush.pixmap();

 	// Make sure the background pixmap exists
-	if ( containerBG )
+	if ( containerBG && parent() ) //parent() is null for ZoomButtons
 	{
 	    // Create a pixmap the same size as the button to use as the bg
 	    QPixmap bgPix( width(), height() );


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

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