Fixed: typo

This commit is contained in:
Andrew Hankinson committed 2014-08-13 19:44:23 -04:00
1 parent a96269150a
commit c5c46df613
1 file changed
+2 -2
+2 -2
View File
@@ -540,12 +540,12 @@ var kDelegateRespondsTo_textShouldBeginEditing
inTextContainer:_textContainer
rectCount:nil],
effectiveSelectionColor = [self _isFocused] ? [_selectedTextAttributes objectForKey:CPBackgroundColorAttributeName] : [CPColor _selectedTextBackgroundColorUnfocussed],
lenghtRect = rects.length;
lengthRect = rects.length;
CGContextSaveGState(ctx);
CGContextSetFillColor(ctx, effectiveSelectionColor);
for (var i = 0; i < lenghtRect; i++)
for (var i = 0; i < lengthRect; i++)
{
rects[i].origin.x += _textContainerOrigin.x;
rects[i].origin.y += _textContainerOrigin.y;