branch | RCL_3 |
changeset 9 | aabf2c525e0f |
parent 0 | 2f259fa3e83a |
child 15 | 08e69e956a8c |
--- a/commonuis/CommonUi/src/ItemFinder.cpp Fri Feb 19 23:04:46 2010 +0200 +++ b/commonuis/CommonUi/src/ItemFinder.cpp Fri Mar 12 15:43:43 2010 +0200 @@ -923,6 +923,10 @@ { break; // Item not visible. } + if( end >= ( pos + len ) ) + { + end = pos + len - 1; + } TInt lastLine = (*iEditor)->TextLayout()->GetLineNumber( end ); TInt nextLine = 0; TInt lastPos = start;