menufw/menufwui/mmwidgets/src/mmlistboxitemdrawer.cpp
branchRCL_3
changeset 12 9674c1a575e9
parent 9 f966699dea19
child 19 79311d856354
--- a/menufw/menufwui/mmwidgets/src/mmlistboxitemdrawer.cpp	Fri Mar 12 15:41:49 2010 +0200
+++ b/menufw/menufwui/mmwidgets/src/mmlistboxitemdrawer.cpp	Mon Mar 15 12:39:47 2010 +0200
@@ -293,6 +293,7 @@
 //
 void CMmListBoxItemDrawer::DrawFloatingItems(TRect currentlyDrawnRect)
     {
+    TBool redrawItemBackground = IsRedrawItemBackgroundEnabled( );
     SetRedrawItemBackground( EFalse );
     for(TInt i(iFloatingItems.Count()-1); i >= 0 ; i--)
         {
@@ -327,7 +328,7 @@
             iFloatingItems.Remove(i);
         	}
         }
-    SetRedrawItemBackground( ETrue );
+    SetRedrawItemBackground( redrawItemBackground );
     }
 
 // -----------------------------------------------------------------------------
@@ -1035,11 +1036,13 @@
 	if ( iDrawMoveIndicators )
 		{
 		iIsIndicatorItem = ETrue;
+		TBool redrawItemBackground =
+            IsRedrawItemBackgroundEnabled( );
 		SetRedrawItemBackground( EFalse );
 
 		DrawActualItem( aItemIndex, AdjustItemRect( aItemIndex ) , EFalse, EFalse, EFalse, EFalse);
 
-		SetRedrawItemBackground( ETrue );
+		SetRedrawItemBackground( redrawItemBackground );
 		iIsIndicatorItem = EFalse;
 		}
 	}