mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 02:48:12 +08:00
Fix bug 56708
This commit is contained in:
@ -1020,7 +1020,9 @@ NSFonts::CFontInfo* CFontList::GetByParams(NSFonts::CFontSelectFormat& oSelect,
|
||||
}
|
||||
if ( oSelect.wsDefaultName != NULL )
|
||||
{
|
||||
int nTmp = 1000 + GetFaceNamePenalty2( pInfo, *oSelect.wsDefaultName, true );
|
||||
int nTmp = GetFaceNamePenalty2( pInfo, *oSelect.wsDefaultName, true );
|
||||
if (nTmp < 3000) // max value in picker
|
||||
nTmp += 3000;
|
||||
if (nTmp < nNamePenalty)
|
||||
nNamePenalty = nTmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user