X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a29912f608e082001ee53b9873323c4bcd71f21..48fe83743aafc0c3427824b7c3051119b22ebe79:/utils/tex2rtf/src/rtfutils.cpp diff --git a/utils/tex2rtf/src/rtfutils.cpp b/utils/tex2rtf/src/rtfutils.cpp index d58191aa95..93a6356748 100644 --- a/utils/tex2rtf/src/rtfutils.cpp +++ b/utils/tex2rtf/src/rtfutils.cpp @@ -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");