mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 13:11:55 +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
03d1d8f8a6
commit
5bb05e5135
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
|
id text = [_textStorage attribute: NSToolTipAttributeName
|
||||||
atIndex: i
|
atIndex: i
|
||||||
effectiveRange: &r];
|
effectiveRange: &r];
|
||||||
// Give up if there are not tooltips
|
if (r.location > end) { return; }
|
||||||
if (nil == text) { return; }
|
if (nil == text)
|
||||||
|
{
|
||||||
|
i = r.location + r.length;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// If there is one, find the rectangles it uses.
|
// If there is one, find the rectangles it uses.
|
||||||
NSUInteger rectCount;
|
NSUInteger rectCount;
|
||||||
NSRectArray rects =
|
NSRectArray rects =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue