uifw/ganes/src/HgList.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 9 aabf2c525e0f
--- a/uifw/ganes/src/HgList.cpp	Fri Mar 12 15:43:43 2010 +0200
+++ b/uifw/ganes/src/HgList.cpp	Mon Mar 15 12:41:34 2010 +0200
@@ -399,11 +399,14 @@
 //
 void CHgList::SelectDefaultItem()
     {
-    iSelectedIndex = iCurrentRow;
-    FitSelectionToView();
-    SelectionChanged();
-
-    DrawDeferred();
+    if( iCurrentRow >= 0 && iCurrentRow < iItems.Count() )
+        {
+        iSelectedIndex = iCurrentRow;
+        FitSelectionToView();
+        SelectionChanged();
+    
+        DrawDeferred();
+        }
     }
 
 TInt CHgList::CurrentIndex()