uifw/AvKon/src/AknPopupField.cpp
branchRCL_3
changeset 17 a1caeb42b3a3
parent 8 71dd06cfe933
child 18 fcdfafb36fe7
--- a/uifw/AvKon/src/AknPopupField.cpp	Mon Jun 21 15:57:43 2010 +0300
+++ b/uifw/AvKon/src/AknPopupField.cpp	Thu Jul 15 18:56:19 2010 +0300
@@ -219,15 +219,15 @@
 void CAknPopupField::SetScrollBarSelectionL()
     {
     TInt selection = iValue->CurrentValueIndex();
+    //iOldItemIndex should be saved as original value.
+    if ( iExtension )
+        {
+        iExtension->iOldItemIndex = selection;
+        }
     if (IsInvalid()) selection = 0;
     __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist));
     iSelectionList->SetCurrentItemIndex(selection);
     iSelectionList->View()->SelectItemL(selection);
-
-    if ( iExtension )
-        {
-        iExtension->iOldItemIndex = iSelectionList->CurrentItemIndex();
-        }
     }