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