pdf loader - also handle non-small letter extns

This commit is contained in:
Carsten Haitzler 2021-08-09 08:20:23 +01:00
parent abd6947e8b
commit 0a3a28525c
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ main(int argc, char **argv)
// This is a funny hack to call an external tool to generate a pdf that will then be processed by poppler
extension = strrchr(file, '.');
dir = dirname(argv[0]);
if (extension && dir && strcmp(extension, ".pdf"))
if (extension && dir && (!(!strcasecmp(extension, ".pdf"))))
{
#ifndef _WIN32
signal(SIGSEGV, _crash);