From 2b3953404217eae5082a9eab6ca56c0292e525bd Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 20 Dec 2010 22:33:12 +0000 Subject: [PATCH] Greyed out notes do produce output, which means that their counters need to be treated as part of the document. For example, the footnote numbers in LyX are wrong prior to this patch. This will also affect word and character count, but should not affect anything else. If that seems wrong, we can either (a) explicitly exclude notes from the word count or else (b) introduce bool countWordsInInset() const; and call that, instead. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36976 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetNote.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/insets/InsetNote.h b/src/insets/InsetNote.h index 8022113891..4a69a19d4e 100644 --- a/src/insets/InsetNote.h +++ b/src/insets/InsetNote.h @@ -65,13 +65,9 @@ private: DisplayType display() const; /// bool noFontChange() const { return params_.type != InsetNoteParams::Note; } - /*! - * Is the content of this inset part of the output document? - * - * Note that Note insets are not considered part of the - * document, even in their 'greyed out' incarnation. - */ - bool producesOutput() const { return false; } + /// Is the content of this inset part of the output document? + bool producesOutput() const + { return params_.type == InsetNoteParams::Greyedout; } /// bool allowSpellCheck() const; /// -- 2.39.5