From edeff736919b014543dacb5d421712529272de77 Mon Sep 17 00:00:00 2001 From: "karlt+@karlt.net" Date: Thu, 13 Dec 2007 20:16:47 -0800 Subject: [PATCH] Bug 407415 - NaNs in gfxPangoFont::RealizeFont with font-size:0 and font-size-adjust. r=roc a=dsicore --- gfx/thebes/src/gfxPangoFonts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/thebes/src/gfxPangoFonts.cpp b/gfx/thebes/src/gfxPangoFonts.cpp index 44462ff70d17..544dc10a1f79 100644 --- a/gfx/thebes/src/gfxPangoFonts.cpp +++ b/gfx/thebes/src/gfxPangoFonts.cpp @@ -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;