diff options
| -rw-r--r-- | indra/llui/lltextbase.cpp | 13 | 
1 files changed, 1 insertions, 12 deletions
| diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 78a6ab1eaa..0e542ad05c 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -962,19 +962,8 @@ void LLTextBase::reshape(S32 width, S32 height, BOOL called_from_parent)  {  	if (width != getRect().getWidth() || height != getRect().getHeight())  	{ -		//EXT-4288 -		//to keep consistance scrolling behaviour  -		//when scrolling from top and from bottom... -		bool is_scrolled_to_end = (mScroller!=NULL) && scrolledToEnd(); -		  		LLUICtrl::reshape( width, height, called_from_parent ); -		if (is_scrolled_to_end) -		{ -			deselect(); -			endOfDoc(); -		}		 -  		// do this first after reshape, because other things depend on  		// up-to-date mVisibleTextRect  		updateRects(); @@ -1858,7 +1847,7 @@ S32 LLTextBase::getDocIndexFromLocalCoord( S32 local_x, S32 local_y, BOOL round,  			pos = segment_line_start;  			break;  		} -		if (local_x < start_x + text_width			// cursor to left of right edge of text +		if (local_x < start_x + text_width						// cursor to left of right edge of text  			|| newline)								// or this line ends with a newline, set doc pos to newline char  		{  			// Figure out which character we're nearest to. | 
