From 397473b752f25e5ebfe65cb45c1f0855938f5b93 Mon Sep 17 00:00:00 2001 From: "pavlov@pavlov.net" Date: Sat, 22 Mar 2008 18:13:10 -0700 Subject: [PATCH] bug 424566. fix crash in font selection. r/a=vlad --- gfx/thebes/src/gfxWindowsPlatform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/thebes/src/gfxWindowsPlatform.cpp b/gfx/thebes/src/gfxWindowsPlatform.cpp index b06650742f26..88109cc6b121 100644 --- a/gfx/thebes/src/gfxWindowsPlatform.cpp +++ b/gfx/thebes/src/gfxWindowsPlatform.cpp @@ -574,7 +574,7 @@ gfxWindowsPlatform::FontResolveProc(const ENUMLOGFONTEXW *lpelfe, struct FontSearch { FontSearch(PRUint32 aCh, gfxWindowsFont *aFont) : - ch(aCh), fontToMatch(aFont), matchRank(0) { + ch(aCh), fontToMatch(aFont), matchRank(-1) { } PRUint32 ch; nsRefPtr fontToMatch;