Better solution for frame_heart.png being wrongly discarded as the .png version of frame_hearts.png.

This commit is contained in:
Pere Pujal i Carabantes 2019-09-26 00:22:53 +02:00
parent d0aeab0e95
commit ca0420df40

View file

@ -18853,7 +18853,7 @@ static int do_new_dialog(void)
f2 = &(fs[k].f);
strcpy(fname2, f2->d_name);
if (strstr(fname, fname2) == fname2 && strcasestr(fname2, ".svg") != NULL)
if (strstr(fname2, fname) == fname2 && strlen(fname) == strlen(fname2)- strlen(".svg") && strcasestr(fname2, ".svg") != NULL)
{
/* SVG of this bitmap exists; we'll skip it */
skip = 1;