Skip to content

Commit fd0aaed

Browse files
authored
fix: Fix bug that could cause errant line when rendering. (#9333)
1 parent b2bbe96 commit fd0aaed

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

core/renderers/common/drawer.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,12 @@ export class Drawer {
122122
} else if (Types.isSpacer(elem)) {
123123
this.outlinePath_ += svgPaths.lineOnAxis('h', elem.width);
124124
}
125+
// No branch for a square corner, because it's a no-op.
125126
}
126-
// No branch for a square corner, because it's a no-op.
127-
this.outlinePath_ += svgPaths.lineOnAxis('v', topRow.height);
127+
this.outlinePath_ += svgPaths.lineOnAxis(
128+
'v',
129+
topRow.height - topRow.ascenderHeight,
130+
);
128131
}
129132

130133
/**

0 commit comments

Comments
 (0)