mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
2370949607
commit
46d64c5822
1 changed files with 6 additions and 2 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue