diff -r 81f8547efd4f -r e8e3147d53eb phonebookui/Phonebook2/CommandsExtension/src/CPbk2CopyAddressToClipboardCmd.cpp --- a/phonebookui/Phonebook2/CommandsExtension/src/CPbk2CopyAddressToClipboardCmd.cpp Fri Mar 12 15:41:25 2010 +0200 +++ b/phonebookui/Phonebook2/CommandsExtension/src/CPbk2CopyAddressToClipboardCmd.cpp Mon Mar 15 12:39:26 2010 +0200 @@ -230,18 +230,12 @@ ( MVPbkStoreContact& aStoreContact ) { TInt index = KErrNotFound; - CPbk2PresentationContact* presentationContact = - CPbk2PresentationContact::NewL( aStoreContact, - iAppServices->FieldProperties() ); - CleanupStack::PushL( presentationContact ); - + if (iUiControl) { - index = presentationContact->PresentationFields().StoreIndexOfField( - iUiControl->FocusedFieldIndex() ); + index = iUiControl->FocusedFieldIndex(); } - CleanupStack::PopAndDestroy( presentationContact ); - + if ( index != KErrNotFound ) { // Use FieldAtLC to avoid the unvalidity of the field after new