From 1552ad2c1190b45168f96206cccebdeb409944ee Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Mon, 16 Jul 2007 11:51:54 +0000 Subject: [PATCH] Same here: don't render null icons svn path=/trunk/KDE/kdebase/workspace/; revision=688599 --- effects/presentwindows.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index df16a13657..867ac0887b 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -796,6 +796,12 @@ void PresentWindowsEffect::updateFilterTexture() void PresentWindowsEffect::paintWindowIcon( EffectWindow* w, WindowPaintData& paintdata ) { + // Don't render null icons + if( w->icon().isNull() ) + { + return; + } + WindowData& data = mWindowData[ w ]; if( data.icon.serialNumber() != w->icon().serialNumber()) { // make sure data.icon is the right QPixmap, and rebind