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
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user