mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Unnecessary argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32070 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3f22ae8f1d
commit
ff61f41d5b
@ -163,8 +163,7 @@ public:
|
||||
OutputParams const & runparams);
|
||||
|
||||
///
|
||||
void validate(LaTeXFeatures & features,
|
||||
Layout const & layout) const;
|
||||
void validate(LaTeXFeatures & features) const;
|
||||
|
||||
/// Checks if the paragraph contains only text and no inset or font change.
|
||||
bool onlyText(Buffer const & buf, Font const & outerfont,
|
||||
@ -1070,15 +1069,14 @@ bool Paragraph::Private::latexSpecialPhrase(odocstream & os, pos_type & i,
|
||||
}
|
||||
|
||||
|
||||
void Paragraph::Private::validate(LaTeXFeatures & features,
|
||||
Layout const & layout) const
|
||||
void Paragraph::Private::validate(LaTeXFeatures & features) 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);
|
||||
@ -1093,7 +1091,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");
|
||||
}
|
||||
@ -1291,7 +1289,7 @@ void Paragraph::write(ostream & os, BufferParams const & bparams,
|
||||
|
||||
void Paragraph::validate(LaTeXFeatures & features) const
|
||||
{
|
||||
d->validate(features, *d->layout_);
|
||||
d->validate(features);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user