Bug 552284: Check if we're valid before computing metrics. r=jfkthame

This commit is contained in:
Bas Schouten 2010-03-20 18:25:37 +01:00
parent 5cd1a1f641
commit da83d8df41

View File

@ -74,11 +74,12 @@ gfxDWriteFont::gfxDWriteFont(gfxFontEntry *aFontEntry,
rv = fe->CreateFontFace(getter_AddRefs(mFontFace), sims);
ComputeMetrics();
if (NS_FAILED(rv)) {
mIsValid = PR_FALSE;
return;
}
ComputeMetrics();
}
gfxDWriteFont::~gfxDWriteFont()