Commits

Joseph Wright committed 22ff49d

Save/restore mode with sections when gobbling (fixes issue #199)

Comments (0)

Files changed (1)

base/beamerbasesection.sty

 \mode
 <all>
 {
-  \def\beamer@secgobble{\@ifnextchar*{\beamer@secstargobble}{\beamer@gobbleoptional}}
-  \def\beamer@secstargobble*{\beamer@gobbleoptional}
+  \def\beamer@secgobble{\beamer@savemode\@ifnextchar*{\beamer@secstargobble}{\beamer@sec@gobbleoptional}}
+  \def\beamer@secstargobble*{\beamer@sec@gobbleoptional}
+  \newcommand\beamer@sec@gobbleoptional[2][]{\beamer@resumemode}
   \def\secname{}
   \def\subsecname{}
   \def\subsubsecname{}