X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer.C;h=43f7f7efb59cd86ba82ecf3667e9f06f0faf58ca;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=cf93290a146ae648b51733d393d9cab4c61a7fac;hpb=f6730f66b0d146cd7ec062cb371014ba0211010b;p=lyx.git diff --git a/src/buffer.C b/src/buffer.C index cf93290a14..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 @@ -554,11 +554,9 @@ void Buffer::insertStringAsLines(ParagraphList & pars, } space_inserted = true; } -/* FIXME: not needed anymore? } else if (!isPrintable(*cit)) { // Ignore unprintables continue; -*/ } else { // just insert the character par.insertChar(pos, *cit, font, params().trackChanges); @@ -1164,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)));