Commits

Joseph Wright committed 0fdf5bc

Test that section number is > 0 before inserting (fixes #247)

Comments (0)

Files changed (1)

base/beamerbasetoc.sty

   \expandafter\only\beamer@tocsections{\gdef\beamer@todo{%
       \beamer@tempcount=#5\relax%
       \advance\beamer@tempcount by\beamer@sectionadjust%
-      \edef\inserttocsectionnumber{\the\beamer@tempcount}%
+      \ifnum\beamer@tempcount>0
+        \edef\inserttocsectionnumber{\the\beamer@tempcount}%
+      \else
+        \def\inserttocsectionnumber{}%
+      \fi%
       \def\inserttocsection{\hyperlink{Navigation#3}{#2}}%
       \beamer@tocifnothide{\ifnum\c@section=#1\beamer@toc@cs\else\beamer@toc@os\fi}%
       {