From 1b9bfd6cb41d8bd04ecd8944ca0cc4d99bfd7b27 Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Thu, 2 Apr 2009 15:51:07 +0200 Subject: [PATCH] Let the disable option rule --- todonotes.dtx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/todonotes.dtx b/todonotes.dtx index 6606e75..d481379 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -964,11 +964,15 @@ % If the |obeyDraft| is given, check whether the |draft| % option is given and enable or disable the functionality of this % package. +% The |disable| option will overrule the effect of |obeyDraft|. % \begin{macrocode} -\if@todonotes@obeyDraft - \@todonotes@disabledtrue - \if@todonotes@isDraft - \@todonotes@disabledfalse +\if@todonotes@disabled +\else + \if@todonotes@obeyDraft + \@todonotes@disabledtrue + \if@todonotes@isDraft + \@todonotes@disabledfalse + \fi \fi \fi % \end{macrocode}