diff --git a/todonotes.dtx b/todonotes.dtx index 52087ec..00bcea9 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -1930,10 +1930,10 @@ prior to loading the todonotes package.} \else\fi% % The |\todototoc| command respects the disable option. % \begin{macrocode} \newcommand{\todototoc} -{ +{% \if@todonotes@disabled \else - \addcontentsline{toc}{\@ifundefined{chapter}{section}{chapter}}{\@todonotes@todolistname} + \addcontentsline{toc}{\@ifundefined{chapter}{section}{chapter}}{\@todonotes@todolistname}% \fi } % \end{macrocode}