Correct computation of attachment cell frame.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27750 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2009-02-01 14:07:30 +00:00
parent 6d9fd6d690
commit 54195911db
3 changed files with 23 additions and 10 deletions

View file

@ -4811,12 +4811,17 @@ other than copy/paste or dragging. */
if (cell != nil)
{
NSRect cellFrame;
NSRect lfRect;
lfRect = [_layoutManager lineFragmentRectForGlyphAtIndex: startIndex
effectiveRange: NULL];
cellFrame.origin = [_layoutManager
locationForGlyphAtIndex: startIndex];
cellFrame.size = [_layoutManager
attachmentSizeForGlyphAtIndex: startIndex];
cellFrame.origin.y -= cellFrame.size.height;
cellFrame.origin.x += lfRect.origin.x;
cellFrame.origin.y += lfRect.origin.y;
/* TODO: What about the insertion point ? */
if ([cell wantsToTrackMouseForEvent: theEvent