Fix bug found by framework test

This commit is contained in:
Adam Barth
2016-09-15 12:19:58 -07:00
parent 5a040b1445
commit 140e085e64

View File

@@ -388,11 +388,11 @@ Int32List _encodeParagraphStyle(TextAlign textAlign,
}
if (fontWeight != null) {
result[0] |= 1 << 2;
result[3] = fontWeight.index;
result[2] = fontWeight.index;
}
if (fontStyle != null) {
result[0] |= 1 << 3;
result[4] = fontStyle.index;
result[3] = fontStyle.index;
}
if (fontFamily != null) {
result[0] |= 1 << 4;