Fixed #560 nk_font_atlas_add

pull/568/head
vurtun 2017-12-02 12:26:30 +01:00
parent 0c4d93e177
commit 16c6f2ae87
1 changed files with 4 additions and 2 deletions

View File

@ -12187,8 +12187,10 @@ nk_font_atlas_add(struct nk_font_atlas *atlas, const struct nk_font_config *conf
atlas->fonts = font;
font->next = 0;
} else {
font->next = atlas->fonts;
atlas->fonts = font;
struct nk_font *i = atlas->fonts;
while (i->next) i = i->next;
i->next = font;
font->next = 0;
}
cfg->font = &font->info;
} else {