Fix run splitting for background color

This commit is contained in:
Niklas Mischkulnig 2018-07-31 19:57:17 +02:00
parent 4f9d5c47a0
commit 9cbc7180e6
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ static void addBackgroundAttribute(struct foreachParams *p, size_t start, size_t
return;
}
CFAttributedStringSetAttribute(p->mas, CFRangeMake(start, end - start), (CFStringRef)@"FORCE", @"YES");
CFAttributedStringSetAttribute(p->mas, CFRangeMake(start, end - start), (CFStringRef)@"FORCE_RUN", [NSString stringWithFormat:@"%lu %lu", start, end]);
dtb = [[uiprivDrawTextBackgroundParams alloc] initWithStart:start end:end r:r g:g b:b a:a];
[p->backgroundParams addObject:dtb];
[dtb release];