mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Spelling correction and removal of a newline.
This commit is contained in:
parent
781c18c0ae
commit
65445f6e4f
1 changed files with 1 additions and 2 deletions
|
@ -1401,7 +1401,6 @@ static NSColor *dtxtCol;
|
|||
{
|
||||
NSUInteger location = r.location;
|
||||
|
||||
|
||||
[self setTitle: [[aString substringToIndex: location]
|
||||
stringByAppendingString:
|
||||
[aString substringFromIndex: NSMaxRange(r)]]];
|
||||
|
@ -3018,7 +3017,7 @@ static NSColor *dtxtCol;
|
|||
NSString *ellipsis = @"...";
|
||||
NSLineBreakMode mode = [self lineBreakMode];
|
||||
// This code shortens the string one character at a time.
|
||||
// To speed it up we start off propertional:
|
||||
// To speed it up we start off proportional:
|
||||
CGFloat width = [mutableString size].width;
|
||||
int cut = MAX(floor([mutableString length] * (width - titleRect.size.width) / width), 4);
|
||||
|
||||
|
|
Loading…
Reference in a new issue