]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Do not let the children's buffer params leak into the master (#5941)
[features.git] / src / Buffer.cpp
index 2c186553ce47ee69614b4ee295a7b23017abd711..b0db5c7136a4b906dea108c33dbd409561e9b322 100644 (file)
@@ -1922,7 +1922,11 @@ int Buffer::runChktex()
 
 void Buffer::validate(LaTeXFeatures & features) const
 {
-       params().validate(features);
+       // Validate the buffer params, but not for included
+       // files, since they also use the parent buffer's
+       // params (# 5941)
+       if (!features.runparams().is_child)
+               params().validate(features);
 
        for_each(paragraphs().begin(), paragraphs().end(),
                 bind(&Paragraph::validate, _1, ref(features)));