From cc78b12b0019fbcb17692b231d38ba75d0952201 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Tue, 11 Feb 2014 21:48:44 +0100 Subject: [PATCH] Bug 722603 - doxygen nested \if \endif sample not working --- src/commentscan.l | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/commentscan.l b/src/commentscan.l index 65c352e82a3..fc53c573f13 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -1842,8 +1842,14 @@ RCSTAG "$"{ID}":"[^\n$]+"$" } else { - delete guards.pop(); - BEGIN( GuardParamEnd ); + GuardedSection *s = guards.pop(); + bool parentVisible = s->parentVisible(); + delete s; + if (parentVisible) + { + enabledSectionFound=TRUE; + BEGIN( GuardParamEnd ); + } } } {CMD}"else"/{NW} {