Skip to content

Commit

Permalink
Merge pull request #3 from caolanm/window-null-metrics
Browse files Browse the repository at this point in the history
check incoming metric for nullptr
  • Loading branch information
Caolán McNamara authored Feb 24, 2020
2 parents 7717744 + 4ed8f5e commit ffc8f5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/font.c
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,10 @@ static FT_Face ipa_font_face_open (wmfAPI* API,char* ps_name,char* glyphs,char*
}

#ifdef _WIN32
metrics = remap_font_file_name (API,metrics);
if (metrics)
{
metrics = remap_font_file_name (API,metrics);
}
#endif
if (metrics)
{ if (stat (metrics,&stat_buf))
Expand Down

0 comments on commit ffc8f5a

Please sign in to comment.