X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FExternalSupport.cpp;h=aa6f51cbe919a1222a6157df140ee3dec00af6cd;hb=6b49b6b129af9417fea7ea907a44a46fbbd38340;hp=639109bd1da5816b892fca8fafe0caaf46bcd2ff;hpb=0b17cb113523fb23c43064709e9b6606fe80914c;p=lyx.git diff --git a/src/insets/ExternalSupport.cpp b/src/insets/ExternalSupport.cpp index 639109bd1d..aa6f51cbe9 100644 --- a/src/insets/ExternalSupport.cpp +++ b/src/insets/ExternalSupport.cpp @@ -363,11 +363,20 @@ int writeExternal(InsetExternalParams const & params, string const absname = makeAbsPath( params.filename.outputFileName(buffer.filePath()), buffer.filePath()).absFileName(); - if (!dryrun && !external_in_tmpdir && !isValidLaTeXFileName(absname)) { - lyx::frontend::Alert::warning(_("Invalid filename"), - _("The following filename is likely to cause trouble " - "when running the exported file through LaTeX: ") + - from_utf8(absname)); + if (!dryrun && !external_in_tmpdir) { + if (!isValidLaTeXFileName(absname)) { + lyx::frontend::Alert::warning(_("Invalid filename"), + _("The following filename will cause troubles " + "when running the exported file through LaTeX: ") + + from_utf8(absname)); + } + if (!isValidDVIFileName(absname)) { + lyx::frontend::Alert::warning(_("Problematic filename for DVI"), + _("The following filename can cause troubles " + "when running the exported file through LaTeX " + "and opening the resulting DVI: ") + + from_utf8(absname), true); + } } str = substituteCommands(params, str, format);