equal
deleted
inserted
replaced
397 // CHgList::SelectDefaultItem() |
397 // CHgList::SelectDefaultItem() |
398 // ----------------------------------------------------------------------------- |
398 // ----------------------------------------------------------------------------- |
399 // |
399 // |
400 void CHgList::SelectDefaultItem() |
400 void CHgList::SelectDefaultItem() |
401 { |
401 { |
402 iSelectedIndex = iCurrentRow; |
402 if( iCurrentRow >= 0 && iCurrentRow < iItems.Count() ) |
403 FitSelectionToView(); |
403 { |
404 SelectionChanged(); |
404 iSelectedIndex = iCurrentRow; |
405 |
405 FitSelectionToView(); |
406 DrawDeferred(); |
406 SelectionChanged(); |
|
407 |
|
408 DrawDeferred(); |
|
409 } |
407 } |
410 } |
408 |
411 |
409 TInt CHgList::CurrentIndex() |
412 TInt CHgList::CurrentIndex() |
410 { |
413 { |
411 return iCurrentRow; |
414 return iCurrentRow; |