From 89695eb813b7be9d3903c66c83ff92a10d4d34b0 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 7 Jul 2008 16:48:36 +0000 Subject: [PATCH] Fix bug 4976. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25481 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetFlex.cpp | 9 ++++----- src/insets/InsetFlex.h | 4 ---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp index b768a4b344..a4bd7d2c29 100644 --- a/src/insets/InsetFlex.cpp +++ b/src/insets/InsetFlex.cpp @@ -38,8 +38,6 @@ InsetFlex::InsetFlex(Buffer const & buf, string const & layoutName) { // again, because now the name is initialized setLayout(buf.params().documentClassPtr()); - packages_ = getLayout().requires(); - preamble_ = getLayout().preamble(); } @@ -117,9 +115,10 @@ void InsetFlex::textString(odocstream & os) const void InsetFlex::validate(LaTeXFeatures & features) const { - if (!preamble_.empty()) - features.addPreambleSnippet(preamble_); - features.require(packages_); + string const preamble = getLayout().preamble(); + if (!preamble.empty()) + features.addPreambleSnippet(preamble); + features.require(getLayout().requires()); } } // namespace lyx diff --git a/src/insets/InsetFlex.h b/src/insets/InsetFlex.h index 63840a64ba..2fdc43ccb0 100644 --- a/src/insets/InsetFlex.h +++ b/src/insets/InsetFlex.h @@ -58,10 +58,6 @@ private: /// std::string name_; - /// - std::set packages_; - /// - std::string preamble_; }; -- 2.39.5