diff options
Diffstat (limited to 'src/mangen.h')
-rw-r--r-- | src/mangen.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mangen.h b/src/mangen.h index 66aa69c..085b7ad 100644 --- a/src/mangen.h +++ b/src/mangen.h @@ -31,7 +31,8 @@ class ManGenerator : public OutputGenerator //OutputGenerator *copy() { return new ManGenerator; } //OutputGenerator *clone() { return new ManGenerator(*this); } //void append(const OutputGenerator *o); - 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==Man) active=TRUE; } void disableIf(OutputType o) { if (o==Man) active=FALSE; } |