summaryrefslogtreecommitdiffstats
path: root/src/latexgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/latexgen.h')
-rw-r--r--src/latexgen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/latexgen.h b/src/latexgen.h
index 0d7c2ef..6b4dec6 100644
--- a/src/latexgen.h
+++ b/src/latexgen.h
@@ -38,9 +38,9 @@ class LatexGenerator : public OutputGenerator
void enable()
{ if (genStack->top()) active=*genStack->top(); else active=TRUE; }
void disable() { active=FALSE; }
- void enableIf(OutputType o) { if (o==Latex) active=TRUE; }
- void disableIf(OutputType o) { if (o==Latex) active=FALSE; }
- void disableIfNot(OutputType o) { if (o!=Latex) active=FALSE; }
+ void enableIf(OutputType o) { if (o==Latex) enable(); }
+ void disableIf(OutputType o) { if (o==Latex) disable(); }
+ void disableIfNot(OutputType o) { if (o!=Latex) disable(); }
bool isEnabled(OutputType o) { return (o==Latex && active); }
OutputGenerator *get(OutputType o) { return (o==Latex) ? this : 0; }