Skip to content

Commit 0a98825

Browse files
committed
forgot this
1 parent ded3af8 commit 0a98825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CanvasRenderingContext2d.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2423,7 +2423,7 @@ inline double getBaselineAdjustment(PangoLayout* layout, short baseline) {
24232423
case TEXT_BASELINE_IDEOGRAPHIC:
24242424
return ascent + correction_factor;
24252425
case TEXT_BASELINE_MIDDLE:
2426-
return (ascent + descent) / 2.0;
2426+
return middle;
24272427
case TEXT_BASELINE_BOTTOM:
24282428
return (ascent + descent) - correction_factor;
24292429
case TEXT_BASELINE_HANGING:

0 commit comments

Comments
 (0)