From: Richard Heck Date: Fri, 7 Mar 2008 01:21:03 +0000 (+0000) Subject: Did not need to change this. X-Git-Tag: 1.6.10~5819 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2222b3f36718f8ac80c0df509397a1493f710737;p=features.git Did not need to change this. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23529 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 4a0a9a7a85..2541e83a74 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -159,7 +159,7 @@ public: /// void validate(LaTeXFeatures & features, - Layout const * layout) const; + Layout const & layout) const; /// Checks if the paragraph contains only text and no inset or font change. bool onlyText(Buffer const & buf, Font const & outerfont, @@ -987,14 +987,14 @@ bool Paragraph::Private::latexSpecialPhrase(odocstream & os, pos_type & i, void Paragraph::Private::validate(LaTeXFeatures & features, - Layout const * layout) const + Layout const & layout) const { // check the params. if (!params_.spacing().isDefault()) features.require("setspace"); // then the layouts - features.useLayout(layout->name()); + features.useLayout(layout.name()); // then the fonts fontlist_.validate(features); @@ -1009,7 +1009,7 @@ void Paragraph::Private::validate(LaTeXFeatures & features, for (; icit != iend; ++icit) { if (icit->inset) { icit->inset->validate(features); - if (layout->needprotect && + if (layout.needprotect && icit->inset->lyxCode() == FOOT_CODE) features.require("NeedLyXFootnoteCode"); } @@ -1175,7 +1175,7 @@ void Paragraph::write(ostream & os, BufferParams const & bparams, void Paragraph::validate(LaTeXFeatures & features) const { - d->validate(features, d->layout_); + d->validate(features, *d->layout_); }