From 4d07d0b61c9d7dcbdfe47f8898d8f3ec8155d4b2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 27 Nov 2008 08:32:52 +0000 Subject: [PATCH] when validating a paragraph, skip insets that do not produce output git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27719 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 3201105b17..8635bc2f4a 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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)