Skip to content

Commit b2b996e

Browse files
authored
Remove redundant assignment. (#1960)
1 parent 5edf4e0 commit b2b996e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/TextExperiment/Component/ASTextLayout.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ static void ASTextDrawRun(ASTextLine *line, CTRunRef run, CGContextRef context,
23852385
if (mode) { // CJK glyph, need rotated
23862386
CGFloat ofs = (ascent - descent) * 0.5;
23872387
CGFloat w = glyphAdvances[g].width * 0.5;
2388-
CGFloat x = x = line.position.x + verticalOffset + glyphPositions[g].y + (ofs - w);
2388+
CGFloat x = line.position.x + verticalOffset + glyphPositions[g].y + (ofs - w);
23892389
CGFloat y = -line.position.y + size.height - glyphPositions[g].x - (ofs + w);
23902390
if (mode == ASTextRunGlyphDrawModeVerticalRotateMove) {
23912391
x += w;

0 commit comments

Comments
 (0)