summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/htmlgen.h')
-rw-r--r--src/htmlgen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/htmlgen.h b/src/htmlgen.h
index ba1b4b7..e6e99c9 100644
--- a/src/htmlgen.h
+++ b/src/htmlgen.h
@@ -36,7 +36,8 @@ class HtmlGenerator : public OutputGenerator
static void writeHeaderFile(QFile &f);
static void writeFooterFile(QFile &f);
- void enable() { active=TRUE; }
+ void enable()
+ { if (genStack->top()) active=*genStack->top(); else active=TRUE; }
void disable() { active=FALSE; }
void enableIf(OutputType o) { if (o==Html) active=TRUE; }
void disableIf(OutputType o) { if (o==Html) active=FALSE; }