提交 516c096d 编写于 作者: A Adam Barth

Fix encoded paragraph size

上级 5124a68e
......@@ -368,7 +368,7 @@ Int32List _encodeParagraphStyle(TextAlign textAlign,
String fontFamily,
double fontSize,
double lineHeight) {
Int32List result = new Int32List(3);
Int32List result = new Int32List(5);
if (textAlign != null) {
result[0] |= 1 << 1;
result[1] = textAlign.index;
......
......@@ -233,7 +233,7 @@ void ParagraphBuilder::addText(const std::string& text)
PassRefPtr<Paragraph> ParagraphBuilder::build(Int32List& encoded, const std::string& fontFamily, double fontSize, double lineHeight)
{
DCHECK(encoded.num_elements() == 3);
DCHECK(encoded.num_elements() == 5);
int32_t mask = encoded[0];
if (mask) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册