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:45:33 -07:00 коммит произвёл Facebook GitHub Bot
Родитель da150343f7
Коммит c68c55469f
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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()),