]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalSupport.cpp
Fix conflicting inset font defaults (bug #8874)
[lyx.git] / src / insets / ExternalSupport.cpp
index 639109bd1da5816b892fca8fafe0caaf46bcd2ff..aa6f51cbe919a1222a6157df140ee3dec00af6cd 100644 (file)
@@ -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);