Bug 963198 - Don't mix up byte-size and array-length - r=tn

This commit is contained in:
Benoit Jacob 2014-01-23 17:34:04 -05:00
parent 1de6ea2af7
commit fd9534c86b

View File

@ -799,7 +799,7 @@ void nsDisplayNotation::Paint(nsDisplayListBuilder* aBuilder,
rect.TopRight() + gfxPoint(std::min(e / 2.0, -w + .4*h), h + .4*w),
rect.TopRight()
};
gfxCtx->Polygon(p, sizeof(p));
gfxCtx->Polygon(p, MOZ_ARRAY_LENGTH(p));
gfxCtx->Fill();
}
break;