when validating a paragraph, skip insets that do not produce output

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27720 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-11-27 08:47:25 +00:00
parent cef8973349
commit 4c339de71c
2 changed files with 4 additions and 1 deletions

View File

@ -1069,7 +1069,7 @@ void Paragraph::Private::validate(LaTeXFeatures & features,
InsetList::const_iterator icit = insetlist_.begin();
InsetList::const_iterator iend = insetlist_.end();
for (; icit != iend; ++icit) {
if (icit->inset) {
if (icit->inset && icit->inset->producesOutput()) {
icit->inset->validate(features);
if (layout.needprotect &&
icit->inset->lyxCode() == FOOT_CODE)

View File

@ -67,6 +67,9 @@ What's new
- Fix redirection to temporary files with spaces in path (RCS support).
- Do not export preamble parts corresponding to "inactive" text
(notes and disabled branches).
- Fix export to latex in the presence of an encoding switch (bug 5489).
- Fix nesting of \begin{CJK} and \end{CJK} with other environments.