equal
deleted
inserted
replaced
978 entry = iArray[i]; |
978 entry = iArray[i]; |
979 pos = entry->SetPos( pos ); |
979 pos = entry->SetPos( pos ); |
980 pos++; // for whitespace |
980 pos++; // for whitespace |
981 } |
981 } |
982 |
982 |
983 // Reset the text |
983 // Reset the text |
984 SetCursorPosL( 0, EFalse ); //In case the cursor pos is invalid |
|
985 HBufC* text = NULL; |
984 HBufC* text = NULL; |
986 text = GetFormattedAddressListLC( iArray ); |
985 text = GetFormattedAddressListLC( iArray ); |
|
986 // fix for dissapearing text PWAN-82DNEJ |
|
987 SetCursorPosL( 0, EFalse ); //In case the cursor pos is invalid |
987 |
988 |
988 if ( iAddLeftover ) |
989 if ( iAddLeftover ) |
989 { |
990 { |
990 TInt lengthBefore = Text()->DocumentLength(); |
991 TInt lengthBefore = Text()->DocumentLength(); |
991 HBufC* textBefore = HBufC::NewLC( lengthBefore ); |
992 HBufC* textBefore = HBufC::NewLC( lengthBefore ); |
1315 { |
1316 { |
1316 iAddressPopupList->ClosePopupContactListL(); |
1317 iAddressPopupList->ClosePopupContactListL(); |
1317 |
1318 |
1318 // add line feed after new entry |
1319 // add line feed after new entry |
1319 TInt cursorPos( CursorPos() ); |
1320 TInt cursorPos( CursorPos() ); |
|
1321 // related to PWAN-82DNEJ cursorPos shouldn't be 0 here |
|
1322 if (cursorPos == 0) |
|
1323 { |
|
1324 cursorPos = TextLength(); |
|
1325 } |
|
1326 |
1320 if ( !iPartialRemove ) |
1327 if ( !iPartialRemove ) |
1321 { |
1328 { |
1322 Text()->InsertL( cursorPos, TChar(CEditableText::ELineBreak) ); |
1329 Text()->InsertL( cursorPos, TChar(CEditableText::ELineBreak) ); |
1323 } |
1330 } |
1324 HandleTextChangedL(); |
1331 HandleTextChangedL(); |