--- a/messagingappbase/msgeditor/viewsrc/MsgAddressControlEditor.cpp Mon Mar 15 12:40:06 2010 +0200
+++ b/messagingappbase/msgeditor/viewsrc/MsgAddressControlEditor.cpp Wed Mar 31 21:25:02 2010 +0300
@@ -224,9 +224,18 @@
if( numOfEntries > 0 && numOfEntries != aEntryNumber && !setcursorpos)
{
TInt txtlen = TextLength();
- TInt curpos = CursorPos();
- entryStart = iRichText->CharPosOfParagraph( entryLength, aEntryNumber );
- curpos+= --entryLength;
+ TInt curpos = CursorPos();
+ if ( aEntryNumber )
+ {
+ entryStart = iRichText->CharPosOfParagraph( entryLength, aEntryNumber - 1 );
+ curpos = entryStart + --entryLength ;
+ }
+ else
+ {
+ entryStart = iRichText->CharPosOfParagraph( entryLength, aEntryNumber );
+ curpos+= --entryLength;
+ }
+
if ( TextView() )
{
if(curpos < txtlen)