From 76f4b7f7d0cc38fd0fd9e20b4e360dc13d5ca494 Mon Sep 17 00:00:00 2001 From: "masayuki%d-toybox.com" Date: Thu, 23 Nov 2006 02:01:36 +0000 Subject: [PATCH] Bug 361494 NS_ASSERTION of gfxPlatformGtk::IsExistingFont has wrong condition r=vlad git-svn-id: svn://10.0.0.236/trunk@215734 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/thebes/src/gfxBeOSPlatform.cpp | 2 +- mozilla/gfx/thebes/src/gfxPlatformGtk.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/gfx/thebes/src/gfxBeOSPlatform.cpp b/mozilla/gfx/thebes/src/gfxBeOSPlatform.cpp index 62ff302800a..f9cb5f8ea0b 100644 --- a/mozilla/gfx/thebes/src/gfxBeOSPlatform.cpp +++ b/mozilla/gfx/thebes/src/gfxBeOSPlatform.cpp @@ -395,7 +395,7 @@ gfxBeOSPlatform::IsExistingFont(const nsACString &aFontName) goto end; result = fs->nfont; - NS_ASSERTION(result == 1, "What's this case?"); + NS_ASSERTION(result == 0 || result == 1, "What's this case?"); if (result > 0) mAliasForSingleFont.AppendCString(aFontName); diff --git a/mozilla/gfx/thebes/src/gfxPlatformGtk.cpp b/mozilla/gfx/thebes/src/gfxPlatformGtk.cpp index 2b404c97d36..174729ef113 100644 --- a/mozilla/gfx/thebes/src/gfxPlatformGtk.cpp +++ b/mozilla/gfx/thebes/src/gfxPlatformGtk.cpp @@ -555,7 +555,7 @@ gfxPlatformGtk::IsExistingFont(const nsACString &aFontName) goto end; result = fs->nfont; - NS_ASSERTION(result == 1, "What's this case?"); + NS_ASSERTION(result == 0 || result == 1, "What's this case?"); if (result > 0) mAliasForSingleFont.AppendCString(aFontName);