commonuis/CommonUi/src/ItemFinder.cpp
branchRCL_3
changeset 5 aabf2c525e0f
parent 0 2f259fa3e83a
child 7 08e69e956a8c
equal deleted inserted replaced
3:8ca85d2f0db7 5:aabf2c525e0f
   921         TInt start = iAsyncParser->iMarkedItems->At( i )->iStart;
   921         TInt start = iAsyncParser->iMarkedItems->At( i )->iStart;
   922         if ( start >= ( pos + len ) )
   922         if ( start >= ( pos + len ) )
   923             {
   923             {
   924             break; // Item not visible.
   924             break; // Item not visible.
   925             }
   925             }
       
   926         if( end >= ( pos + len ) )
       
   927         	{
       
   928 			end = pos + len - 1;
       
   929         	}
   926         TInt lastLine = (*iEditor)->TextLayout()->GetLineNumber( end );
   930         TInt lastLine = (*iEditor)->TextLayout()->GetLineNumber( end );
   927         TInt nextLine = 0;
   931         TInt nextLine = 0;
   928         TInt lastPos = start;
   932         TInt lastPos = start;
   929         do // Check all rects of one item.
   933         do // Check all rects of one item.
   930             {
   934             {