From 1ec2b1d228a14b828102a9ac2678a5a9bb8523c4 Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Mon, 16 Jul 2007 11:50:01 +0000 Subject: [PATCH] Don't try to draw icon for windows that don't have one svn path=/trunk/KDE/kdebase/workspace/; revision=688598 --- effects/boxswitch.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/effects/boxswitch.cpp b/effects/boxswitch.cpp index 870ae8dde3..afd2401cb3 100644 --- a/effects/boxswitch.cpp +++ b/effects/boxswitch.cpp @@ -545,6 +545,12 @@ void BoxSwitchEffect::paintWindowIcon( EffectWindow* w ) { if( !windows.contains( w )) return; + // Don't render null icons + if( w->icon().isNull() ) + { + return; + } + if( windows[ w ]->icon.serialNumber() != w->icon().serialNumber()) { // make sure windows[ w ]->icon is the right QPixmap, and rebind windows[ w ]->icon = w->icon();