Initialise LineMeasurement::xHeight in constructor

Summary:
Fix a bug in the constructor of `LineMeasurement` where it did not initialise `xHeight` correctly.

Changelog: [Internal]

Reviewed By: JoshuaGross

Differential Revision: D27972942

fbshipit-source-id: a56d55fdfe286bd11a6a81a3d024504f070bdb19
This commit is contained in:
Neil Dhar
2021-04-23 17:46:38 -07:00
committed by Facebook GitHub Bot
parent da150343f7
commit c68c55469f
@@ -34,7 +34,8 @@ LineMeasurement::LineMeasurement(
frame(frame),
descender(descender),
capHeight(capHeight),
ascender(ascender) {}
ascender(ascender),
xHeight(xHeight) {}
LineMeasurement::LineMeasurement(folly::dynamic const &data)
: text(data.getDefault("text", "").getString()),