mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 361494 NS_ASSERTION of gfxPlatformGtk::IsExistingFont has wrong condition r=vlad
This commit is contained in:
parent
ec2e0db515
commit
a0c12c0b41
@ -395,7 +395,7 @@ gfxBeOSPlatform::IsExistingFont(const nsACString &aFontName)
|
|||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
result = fs->nfont;
|
result = fs->nfont;
|
||||||
NS_ASSERTION(result == 1, "What's this case?");
|
NS_ASSERTION(result == 0 || result == 1, "What's this case?");
|
||||||
|
|
||||||
if (result > 0)
|
if (result > 0)
|
||||||
mAliasForSingleFont.AppendCString(aFontName);
|
mAliasForSingleFont.AppendCString(aFontName);
|
||||||
|
@ -555,7 +555,7 @@ gfxPlatformGtk::IsExistingFont(const nsACString &aFontName)
|
|||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
result = fs->nfont;
|
result = fs->nfont;
|
||||||
NS_ASSERTION(result == 1, "What's this case?");
|
NS_ASSERTION(result == 0 || result == 1, "What's this case?");
|
||||||
|
|
||||||
if (result > 0)
|
if (result > 0)
|
||||||
mAliasForSingleFont.AppendCString(aFontName);
|
mAliasForSingleFont.AppendCString(aFontName);
|
||||||
|
Loading…
Reference in New Issue
Block a user