The R Project SVN R-packages

Rev

Rev 6274 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6274 Rev 7293
Line 1535... Line 1535...
1535
		[super mouseDown:event];
1535
		[super mouseDown:event];
1536
		return;
1536
		return;
1537
	}
1537
	}
1538
	
1538
	
1539
	RScriptEditorLayoutManager *layoutManager = (RScriptEditorLayoutManager*)[self layoutManager];
1539
	RScriptEditorLayoutManager *layoutManager = (RScriptEditorLayoutManager*)[self layoutManager];
1540
	NSUInteger glyphIndex = [layoutManager glyphIndexForPoint:[self convertPointFromBase:[event locationInWindow]] inTextContainer:[self textContainer]];
1540
	NSUInteger glyphIndex = [layoutManager glyphIndexForPoint:[self convertPoint:[event locationInWindow] fromView:nil] inTextContainer:[self textContainer]];
1541
	
1541
	
1542
	// trigger unfolding if inside foldingAttachmentCell
1542
	// trigger unfolding if inside foldingAttachmentCell
1543
	if (glyphIndex < [layoutManager numberOfGlyphs]) {
1543
	if (glyphIndex < [layoutManager numberOfGlyphs]) {
1544
	
1544
	
1545
		NSUInteger charIndex = [layoutManager characterIndexForGlyphAtIndex:glyphIndex];
1545
		NSUInteger charIndex = [layoutManager characterIndexForGlyphAtIndex:glyphIndex];