--- a/menufw/menufwui/mmwidgets/src/mmgridview.cpp Fri Jan 22 09:35:14 2010 +0200
+++ b/menufw/menufwui/mmwidgets/src/mmgridview.cpp Tue Jan 26 11:48:23 2010 +0200
@@ -80,24 +80,6 @@
//
// -----------------------------------------------------------------------------
//
-void CMmGridView::DrawItem(TInt aItemIndex) const
- {
- CMmListBoxItemDrawer* itemDrawer =
- STATIC_CAST( CMmListBoxItemDrawer*, ItemDrawer() );
- TSize size = itemDrawer->GetItemSize( 0, ETrue );
- if ( itemDrawer->ItemCellSize() != size )
- {
- const_cast<CMmGridView*>( this )->SetItemHeight(size.iHeight);
- const_cast<CMmGridView*>( this )->SetColumnWidth(size.iWidth);
- }
-
- CAknGridView::DrawItem( aItemIndex );
- }
-
-// -----------------------------------------------------------------------------
-//
-// -----------------------------------------------------------------------------
-//
TPoint CMmGridView::ItemPos( TInt aItemIndex ) const
{
if ( aItemIndex < 0 )
@@ -232,6 +214,14 @@
//
void CMmGridView::Draw(const TRect* aClipRect) const
{
+ CMmListBoxItemDrawer* itemDrawer =
+ STATIC_CAST( CMmListBoxItemDrawer*, ItemDrawer() );
+ TSize size = itemDrawer->GetItemSize( 0, EFalse );
+ if ( itemDrawer->ItemCellSize() != size )
+ {
+ const_cast<CMmGridView*>( this )->SetItemHeight( size.iHeight );
+ const_cast<CMmGridView*>( this )->SetColumnWidth( size.iWidth );
+ }
DoDraw( aClipRect );
}