]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.cpp
Some things did not need to be mutable after all
[lyx.git] / src / insets / InsetListings.cpp
index e4b8c7f1eef81d86f710b3203403afe96ea536b2..1afa0f3612625d663e8500d65dbbcb5c3de9ce11 100644 (file)
@@ -127,7 +127,7 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const
        // glyphs, except if full-unicode aware backends
        // such as XeTeX or LuaTeX are used, and with pLaTeX.
        bool const multibyte_possible = runparams.isFullUnicode()
-           || (buffer().params().bufferFormat() == "platex"
+           || (buffer().params().encoding().package() == Encoding::japanese
                && runparams.encoding->package() == Encoding::japanese);
 
        if (!multibyte_possible && !runparams.encoding->hasFixedWidth()) {