webengine/wmlengine/src/fbox/src/FBOXCEpoc32InputBox.cpp
branchRCL_3
changeset 42 a1a5d4e727e8
parent 1 7c90e6132015
equal deleted inserted replaced
41:4bd5176e1bc8 42:a1a5d4e727e8
  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 // -----------------------------------------------------------------------------