From 39b4341a457d527eeef80e35ec5b4c27dd2fa96b Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 23 Apr 2006 19:14:52 +0000 Subject: [PATCH] bugfix: installation directory didn't work on Unix --- pdf2swf/pdf2swf.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index ba0859b..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")); @@ -455,7 +455,7 @@ int main(int argn, char *argv[]) fclose(test); } #else - fontdir = concatPaths(getInstallationPath(), "fonts"); + fontdir = concatPaths(installPath, "fonts"); #endif #ifdef HAVE_SRAND48 -- 1.7.10.4