]> 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 f3f3b0e2a10e254091a4d67052432ddd99615a4e..c24ddc6c4edf36e69ddb8ce8c3e2d7a7b9bddeca 100644 (file)
@@ -275,7 +275,7 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams,
 
        // polyglossia or babel?
        if (runparams.use_polyglossia
-           && language()->polyglossia() != base.language()->polyglossia()
+           && language()->lang() != base.language()->lang()
            && language() != prev.language()) {
                if (!language()->polyglossia().empty()) {
                        string tmp = "\\text" + language()->polyglossia();