X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fpdf2swf.cc;h=5558e4d0d66e948291bf3e32b9e737369e7becca;hb=6feb1917fd84e9ed59c5cd0518287229ec1db20b;hp=3706afc6feb8fb858d8b50757ebb073d51d91ea9;hpb=29e81f7159dfbc7dbe42d854ed2a49b1dd4a08c7;p=swftools.git diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index 3706afc..5558e4d 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -445,7 +445,7 @@ int main(int argn, char *argv[]) #if defined(WIN32) && defined(HAVE_STAT) && defined(HAVE_SYS_STAT_H) if(installPath) { - fontdir = concatPaths(getInstallationPath(), "fonts"); + fontdir = concatPaths(installPath, "fonts"); FILE*test = fopen(concatPaths(fontdir,"\\d050000l.afm"), "rb"); if(!test) { fprintf(stderr, "Couldn't find file %s - pdf2swf not installed properly? OS says:\n", concatPaths(fontdir, "\\d050000l.afm")); @@ -454,6 +454,8 @@ int main(int argn, char *argv[]) } fclose(test); } +#else + fontdir = concatPaths(installPath, "fonts"); #endif #ifdef HAVE_SRAND48