]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/tex2rtf/src/rtfutils.cpp
Module definitions files for build VisualAge C++ V3.0 dlls.
[wxWidgets.git] / utils / tex2rtf / src / rtfutils.cpp
index d58191aa95069fcc63cf9ec819c1ad554aafb14e..93a6356748757b58b15ecfc967a54a3ef833fd48 100644 (file)
@@ -536,11 +536,11 @@ bool WriteHPJ(char *filename)
   if (!helpTitle)
     helpTitle = "Untitled";
     
-  char *thePath = wxPathOnly(InputFile);
-  if (!thePath)
+  wxString thePath = wxPathOnly(InputFile);
+  if (thePath.IsEmpty())
     thePath = ".";
   fprintf(fd, "[OPTIONS]\n");
-  fprintf(fd, "BMROOT=%s ; Assume that bitmaps are where the source is\n", thePath);
+  fprintf(fd, "BMROOT=%s ; Assume that bitmaps are where the source is\n", thePath.c_str());
   fprintf(fd, "TITLE=%s\n", helpTitle);
   fprintf(fd, "CONTENTS=Contents\n");