Bug 361494 NS_ASSERTION of gfxPlatformGtk::IsExistingFont has wrong condition r=vlad

This commit is contained in:
masayuki%d-toybox.com 2006-11-23 02:01:36 +00:00
parent ec2e0db515
commit a0c12c0b41
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);