]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetGraphics.cpp
Completion: handle undo in insets' insertCompletion methods
[features.git] / src / insets / InsetGraphics.cpp
index 91c23aa7fb2c5ff81b9f00307910e2f865ed97e0..2d93f157fbb975d9a5d1aaa16f44b63c4a930a6c 100644 (file)
@@ -824,7 +824,8 @@ void InsetGraphics::latex(otexstream & os,
        string message;
        // PDFLaTeX and Xe/LuaTeX fall back to draft themselves
        // and error about it. For DVI/PS, we do something similar here.
-       if (!file_exists && runparams.flavor == Flavor::LaTeX) {
+       // We also don't do such tricks when simply exporting a LaTeX file.
+       if (!file_exists && !runparams.nice && runparams.flavor == Flavor::LaTeX) {
                TeXErrors terr;
                ErrorList & errorList = buffer().errorList("Export");
                docstring const s = params().filename.empty() ?