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

List:       kde-commits
Subject:    kdebase/kicker/buttons
From:       Oliver Bausinger <bausi () bausi ! org>
Date:       2003-12-17 0:08:27
[Download RAW message or body]

CVS commit by bausi: 

Unbreak icon zooming 
(parent() is 0 for zoom buttons)

CCMAIL: 70544@bugs.kde.org


  M +6 -1      panelbuttonbase.cpp   1.48


--- kdebase/kicker/buttons/panelbuttonbase.cpp  #1.47:1.48
@@ -200,4 +200,9 @@ void PanelButtonBase::setArrowDirection(
 void PanelButtonBase::setBackground()
 {
+    if( !parent() ) { //parent() is null for ZoomButtons
+        _bg = QPixmap();
+        return;
+    }
+
     // inheritance is ButtonContainer - ScrollView - ContainerArea
     ContainerArea* area = static_cast<ContainerArea*>(parent()->parent()->parent());
@@ -211,5 +216,5 @@ void PanelButtonBase::setBackground()
 
     // Make sure the background pixmap exists
-    if ( containerBG && parent() ) //parent() is null for ZoomButtons
+    if ( containerBG )
     {
         if( containerBG->isNull() ) {


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

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