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 6e9368251c
commit ff9143a319

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;