diff -r aabf2c525e0f -r 9f56a4e1b8ab uifw/ganes/src/HgGrid.cpp --- a/uifw/ganes/src/HgGrid.cpp Fri Mar 12 15:43:43 2010 +0200 +++ b/uifw/ganes/src/HgGrid.cpp Mon Mar 15 12:41:34 2010 +0200 @@ -673,8 +673,11 @@ void CHgGrid::SelectDefaultItem() { iSelectedIndex = CurrentIndex(); - FitSelectionToView(); - DrawDeferred(); + if( iSelectedIndex >= 0 && iSelectedIndex < iItems.Count() ) + { + FitSelectionToView(); + DrawDeferred(); + } } // ----------------------------------------------------------------------------- @@ -760,6 +763,10 @@ iLandScapeScrollingSupported = aSupportLandscapeScrolling; } +// ----------------------------------------------------------------------------- +// CHgGrid::ChangeSelectedIndex() +// ----------------------------------------------------------------------------- +// void CHgGrid::ChangeSelectedIndex( TInt aMove ) { TInt nextIndex = 0; @@ -792,4 +799,13 @@ iSelectedIndex = nextIndex; } +// ----------------------------------------------------------------------------- +// CHgGrid::HandleScrollbarVisibilityChange() +// ----------------------------------------------------------------------------- +// +void CHgGrid::HandleScrollbarVisibilityChange( TBool /*aVisible*/ ) + { + + } + // End of File