Spelling correction and removal of a newline.

This commit is contained in:
fredkiefer 2020-01-01 13:24:39 +01:00
parent 781c18c0ae
commit 65445f6e4f

View file

@ -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);