mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 552284: Check if we're valid before computing metrics. r=jfkthame
This commit is contained in:
parent
5cd1a1f641
commit
da83d8df41
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user