mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 543502 followup: replace non-critical assertion in GDIFontList with optional logging. r=jdaggett
This commit is contained in:
parent
a36f66c45b
commit
dd9376eca9
@ -492,12 +492,9 @@ GDIFontFamily::FindStyleVariations()
|
||||
EnumFontFamiliesExW(hdc, &logFont,
|
||||
(FONTENUMPROCW)GDIFontFamily::FamilyAddStylesProc,
|
||||
(LPARAM)this, 0);
|
||||
#ifdef DEBUG
|
||||
if (mAvailableFonts.Length() == 0) {
|
||||
char msgBuf[256];
|
||||
(void)sprintf(msgBuf, "no styles available in family \"%s\"",
|
||||
NS_ConvertUTF16toUTF8(mName).get());
|
||||
NS_ASSERTION(mAvailableFonts.Length() != 0, msgBuf);
|
||||
#ifdef PR_LOGGING
|
||||
if (LOG_ENABLED() && mAvailableFonts.Length() == 0) {
|
||||
LOG(("no styles available in family \"%s\"", NS_ConvertUTF16toUTF8(mName).get()));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user