Skip to content

Commit

Permalink
Default to left alignment for frameDraw.
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall Luecke committed Jun 19, 2011
1 parent f4f4dd8 commit e38845f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppKit/CoreText/CTFrame.j
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function CTFrameDraw(/* CTFrame */ aFrame, /* CGContext */ aContext)
for (var i = -1, count = lines.length; ++i < count;)
{
var line = lines[i],
alignment = [line.string attribute:@"alignment" atIndex:0 effectiveRange:CPMakeRange(0, 0)],
alignment = [line.string attribute:@"alignment" atIndex:0 effectiveRange:CPMakeRange(0, 0)] || CPLeftTextAlignment,
position = CGContextGetTextPosition(aContext);

if (alignment === CPLeftTextAlignment)
Expand Down

0 comments on commit e38845f

Please sign in to comment.