equal
deleted
inserted
replaced
1721 { |
1721 { |
1722 TInt curPos(iEditor->CursorPos()); |
1722 TInt curPos(iEditor->CursorPos()); |
1723 HBufC* newText = HBufC::NewL(iDocumentText->Length() + aText.Length()); |
1723 HBufC* newText = HBufC::NewL(iDocumentText->Length() + aText.Length()); |
1724 newText->Des().Append(iDocumentText->Left(curPos)); |
1724 newText->Des().Append(iDocumentText->Left(curPos)); |
1725 newText->Des().Append(aText); |
1725 newText->Des().Append(aText); |
1726 newText->Des().Append(iDocumentText->Right(iDocumentText->Length() - curPos)); |
1726 if(iDocumentText->Length() >= curPos) |
|
1727 newText->Des().Append(iDocumentText->Right(iDocumentText->Length() - curPos)); |
1727 iInlineEditText = newText; |
1728 iInlineEditText = newText; |
1728 } |
1729 } |
1729 } |
1730 } |
1730 |
1731 |
1731 // ----------------------------------------------------------------------------- |
1732 // ----------------------------------------------------------------------------- |