X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer.C;h=43f7f7efb59cd86ba82ecf3667e9f06f0faf58ca;hb=c72b361fc98f465633f8dd8b62679f84ed83b2d5;hp=32960215b9eff2d7e94671dacb93dcec823e54b0;hpb=a116e04b8b75b847bfcb5114cc4d92ce3cc2386a;p=lyx.git diff --git a/src/buffer.C b/src/buffer.C index 32960215b9..43f7f7efb5 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -143,7 +143,7 @@ using std::string; namespace { -int const LYX_FORMAT = 253; +int const LYX_FORMAT = 254; } // namespace anon @@ -1162,9 +1162,11 @@ void Buffer::validate(LaTeXFeatures & features) const features.require("dvipost"); // AMS Style is at document level - if (params().use_amsmath == BufferParams::AMS_ON + if (params().use_amsmath == BufferParams::package_on || tclass.provides(LyXTextClass::amsmath)) features.require("amsmath"); + if (params().use_esint == BufferParams::package_on) + features.require("esint"); for_each(paragraphs().begin(), paragraphs().end(), boost::bind(&Paragraph::validate, _1, boost::ref(features)));