mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Use different attributed string drawing method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40218 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f382b159eb
commit
4c396274da
2 changed files with 2 additions and 2 deletions
|
@ -3142,7 +3142,7 @@ static NSColor *dtxtCol;
|
|||
aRect.size.height = titleSize.height;
|
||||
aString = [self _resizeAttributedString:aString forRect:aRect];
|
||||
|
||||
[aString drawInRect: aRect];
|
||||
[aString drawWithRect: aRect options: NSStringDrawingUsesLineFragmentOrigin];
|
||||
}
|
||||
|
||||
- (void) _drawText: (NSString*)aString inFrame: (NSRect)cellFrame
|
||||
|
|
|
@ -262,7 +262,7 @@
|
|||
} while ([string length] > 4 && [string size].width > titleRect.size.width);
|
||||
}
|
||||
}
|
||||
[string drawInRect: titleRect];
|
||||
[string drawWithRect: titleRect options: NSStringDrawingUsesLineFragmentOrigin];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue