]> git.lyx.org Git - lyx.git/blobdiff - src/Font.cpp
Do not overwrite read-only files. We now move the file to the backup directory and...
[lyx.git] / src / Font.cpp
index bf99b3e6582e5158719afdc5102f19d5818b0438..c24ddc6c4edf36e69ddb8ce8c3e2d7a7b9bddeca 100644 (file)
@@ -274,7 +274,9 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams,
        int count = 0;
 
        // polyglossia or babel?
-       if (runparams.use_polyglossia) {
+       if (runparams.use_polyglossia
+           && language()->lang() != base.language()->lang()
+           && language() != prev.language()) {
                if (!language()->polyglossia().empty()) {
                        string tmp = "\\text" + language()->polyglossia();
                        if (!language()->polyglossiaOpts().empty())