summaryrefslogtreecommitdiffstats
path: root/src/rtfgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtfgen.h')
-rw-r--r--src/rtfgen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rtfgen.h b/src/rtfgen.h
index a528501..24de6b2 100644
--- a/src/rtfgen.h
+++ b/src/rtfgen.h
@@ -34,7 +34,8 @@ class RTFGenerator : public OutputGenerator
//OutputGenerator *copy();
//OutputGenerator *clone() { return new RTFGenerator(*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==RTF) active=TRUE; }
void disableIf(OutputType o) { if (o==RTF) active=FALSE; }