diff --git a/src/MainUtils.pas b/src/MainUtils.pas index 16f4540..ce7ede2 100644 --- a/src/MainUtils.pas +++ b/src/MainUtils.pas @@ -584,7 +584,12 @@ function TDocumentConverter.Execute: string; loginfo('Output Extension is ' + outputExt, CHATTY); end; - OutputFile := OutputFile + ChangeFileExt( ExtractFileName(InputFile),OutputExt); + if InputIsFile then + begin + OutputFile := OutputFile + ChangeFileExt( ExtractFileName(InputFile),OutputExt); + end; + + end; // Add file to InputFiles List if only one.