зеркало из https://github.com/mozilla/gecko-dev.git
Bug 361494 NS_ASSERTION of gfxPlatformGtk::IsExistingFont has wrong condition r=vlad
This commit is contained in:
Родитель
ec2e0db515
Коммит
a0c12c0b41
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче