]> git.lyx.org Git - features.git/commitdiff
Do not redefine \jobname for previews
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Jul 2022 10:37:13 +0000 (12:37 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Jul 2022 10:42:10 +0000 (12:42 +0200)
This reverts the fix for #9627, with the agreement of original reporter.

Fixes preview of citation insets.

src/graphics/PreviewLoader.cpp

index 5d767b2c0be38f9eafb6500f2cfb75eb08b62626..1c8d12ff0e21008bd0bd571d0b9fbda20c58ab4e 100644 (file)
@@ -619,11 +619,6 @@ void PreviewLoader::Impl::startLoading(bool wait)
        }
        of << "\\batchmode\n";
 
-       // Set \jobname of previews to the document name (see bug 9627)
-       of << "\\def\\jobname{"
-          << from_utf8(changeExtension(buffer_.latexName(), ""))
-          << "}\n";
-
        LYXERR(Debug::OUTFILE, "Format = " << buffer_.params().getDefaultOutputFormat());
        string latexparam = "";
        bool docformat = !buffer_.params().default_output_format.empty()