Fix tooltips.

Morbo says: NSAttributedStrings DO NOT WORK THAT WAY!



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31552 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2010-10-22 17:45:45 +00:00
parent 2370949607
commit 46d64c5822

View file

@ -3851,8 +3851,12 @@ Figure out how the additional layout stuff is supposed to work.
id text = [_textStorage attribute: NSToolTipAttributeName
atIndex: i
effectiveRange: &r];
// Give up if there are not tooltips
if (nil == text) { return; }
if (r.location > end) { return; }
if (nil == text)
{
i = r.location + r.length;
continue;
}
// If there is one, find the rectangles it uses.
NSUInteger rectCount;
NSRectArray rects =