notepad/notepad1/LibSrc/NpdCoreModel.cpp
branchRCL_3
changeset 21 9711e452b5e9
parent 0 f979ecb2b13e
child 67 1539a383d7b6
equal deleted inserted replaced
20:21239b3bcd78 21:9711e452b5e9
   748     cmpBuf.Append(_L("*"));
   748     cmpBuf.Append(_L("*"));
   749     TBuf<255> actualBuf;
   749     TBuf<255> actualBuf;
   750     TInt insertIndex=0;
   750     TInt insertIndex=0;
   751     TInt offset = KErrNotFound;
   751     TInt offset = KErrNotFound;
   752     TInt cmpOffsetListItem = KErrNotFound;
   752     TInt cmpOffsetListItem = KErrNotFound;
   753     for(insertIndex= 0;insertIndex<aItemArray.MdcaCount();insertIndex++)
   753     if ( IsTemplates() )
       
   754     	{
       
   755         insertIndex = 0;
       
   756     	}
       
   757     else
       
   758     	{
       
   759         insertIndex = 1;
       
   760     	}
       
   761     for(;insertIndex<aItemArray.MdcaCount();insertIndex++)
   754     	{
   762     	{
   755     	actualBuf.Copy(aItemArray.MdcaPoint(insertIndex));
   763     	actualBuf.Copy(aItemArray.MdcaPoint(insertIndex));
   756 		actualTimeBuf.Copy(actualBuf.Left( actualBuf.Match(KCmpColumnListSeparator) ));
   764 		actualTimeBuf.Copy(actualBuf.Left( actualBuf.Match(KCmpColumnListSeparator) ));
   757     	offset = actualBuf.Match(cmpBuf);
   765     	offset = actualBuf.Match(cmpBuf);
   758     	if(offset!=KErrNotFound)
   766     	if(offset!=KErrNotFound)