equal
deleted
inserted
replaced
198 { |
198 { |
199 // The selected item will be at the same position |
199 // The selected item will be at the same position |
200 TInt selected = iListbox->CurrentItemIndex(); |
200 TInt selected = iListbox->CurrentItemIndex(); |
201 TInt noi = iListbox->Model()->NumberOfItems(); |
201 TInt noi = iListbox->Model()->NumberOfItems(); |
202 // If it is the last then the previous will be selected. |
202 // If it is the last then the previous will be selected. |
203 if( selected == noi-1 ) |
203 if( ( selected == noi-1 ) && ( selected > 0 )) |
204 { |
204 { |
205 selected--; |
205 selected--; |
206 } |
206 } |
207 |
207 |
208 TRAPD( err, CCmDlg::ProcessCommandL( |
208 TRAPD( err, CCmDlg::ProcessCommandL( |