Bug 407415 - NaNs in gfxPangoFont::RealizeFont with font-size:0 and font-size-adjust. r=roc a=dsicore

This commit is contained in:
karlt+@karlt.net 2007-12-13 20:16:47 -08:00
parent 93f860380f
commit edeff73691

View File

@ -331,7 +331,7 @@ gfxPangoFont::RealizeFont(PRBool force)
return;
mAdjustedSize = GetStyle()->size;
if (GetStyle()->sizeAdjust == 0)
if (mAdjustedSize == 0 || GetStyle()->sizeAdjust == 0)
return;
gfxSize isz, lsz;