]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/tex2rtf/src/rtfutils.cpp
corrected a type in the constructor from two points
[wxWidgets.git] / utils / tex2rtf / src / rtfutils.cpp
index d58191aa95069fcc63cf9ec819c1ad554aafb14e..dfd45ccde9fe4d74bca8c682f8725df7c4cb78cf 100644 (file)
@@ -536,8 +536,8 @@ 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);