Fix #116215: Sequencer crashes unlinking packed text
[0] caused a regression looking up fonts by filepath.
[0]: d770fd5ac4
This commit is contained in:
parent
bc51f541c2
commit
7346727cfc
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue