diff -r 2f259fa3e83a -r 8ca85d2f0db7 uifw/AvKon/src/aknstatuspanedigitalclock.cpp --- a/uifw/AvKon/src/aknstatuspanedigitalclock.cpp Tue Feb 02 01:00:49 2010 +0200 +++ b/uifw/AvKon/src/aknstatuspanedigitalclock.cpp Fri Feb 19 23:04:46 2010 +0200 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -218,11 +218,18 @@ // void CAknStatuspaneDigitalClock::Draw( const TRect& /*aRect*/ ) const { - MAknsSkinInstance* skin = AknsUtils::SkinInstance(); + // Don't allow normal background drawing if + // background is already drawn with a background drawer. + const MCoeControlBackground* backgroundDrawer = FindBackground(); + if ( !backgroundDrawer && + AknStatuspaneUtils::ExtendedFlatLayoutActive() ) + { + MAknsSkinInstance* skin = AknsUtils::SkinInstance(); - CWindowGc& gc = SystemGc(); - MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); - AknsDrawUtils::Background( skin, cc, this, gc, Rect() ); + CWindowGc& gc = SystemGc(); + MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); + AknsDrawUtils::Background( skin, cc, this, gc, Rect() ); + } }