Fix #116215: Sequencer crashes unlinking packed text

[0] caused a regression looking up fonts by filepath.

[0]: d770fd5ac4
This commit is contained in:
Campbell Barton 2023-12-15 20:13:40 +11:00
parent bc51f541c2
commit 7346727cfc
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ static int blf_search_by_filepath(const char *filepath)
{
for (int i = 0; i < BLF_MAX_FONT; i++) {
const FontBLF *font = global_font[i];
if (font && (BLI_path_cmp(font->filepath, filepath) == 0)) {
if (font && font->filepath && (BLI_path_cmp(font->filepath, filepath) == 0)) {
return i;
}
}