summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2011-06-29 20:14:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2011-06-29 20:14:58 (GMT)
commitb655037884e82e257794004d4e88d3a9ed29d5c3 (patch)
treee669e210441ef87fa9a366b99d90a0c8d8ae944b /src/htmlgen.h
parentde297f6d77f3861b649f3fcba443483d6be6afe9 (diff)
downloadDoxygen-b655037884e82e257794004d4e88d3a9ed29d5c3.zip
Doxygen-b655037884e82e257794004d4e88d3a9ed29d5c3.tar.gz
Doxygen-b655037884e82e257794004d4e88d3a9ed29d5c3.tar.bz2
Release-1.7.4-20110629
Diffstat (limited to 'src/htmlgen.h')
-rw-r--r--src/htmlgen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htmlgen.h b/src/htmlgen.h
index f2fc39c..df63555 100644
--- a/src/htmlgen.h
+++ b/src/htmlgen.h
@@ -46,9 +46,9 @@ class HtmlGenerator : public OutputGenerator
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; }
- void disableIfNot(OutputType o) { if (o!=Html) active=FALSE; }
+ void enableIf(OutputType o) { if (o==Html) enable(); }
+ void disableIf(OutputType o) { if (o==Html) disable(); }
+ void disableIfNot(OutputType o) { if (o!=Html) disable(); }
bool isEnabled(OutputType o) { return (o==Html && active); }
OutputGenerator *get(OutputType o) { return (o==Html) ? this : 0; }