Skip to content

Commit

Permalink
fix: set maxium progressbar to 1
Browse files Browse the repository at this point in the history
This solves matze#274.
  • Loading branch information
jolars committed Jan 11, 2024
1 parent 259f67a commit b401410
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/beamerouterthememoloch.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@
\setlength{\moloch@progressinheadfoot@linewidth}{0.4pt}
\setbeamertemplate{progress bar in head/foot}{
\nointerlineskip
\setlength{\moloch@progressinheadfoot}{%
\paperwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}%
\pgfmathsetlength{\metropolis@progressinheadfoot}{\paperwidth * min(1,\insertframenumber/\inserttotalframenumber}
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
\tikzexternaldisable%
\begin{tikzpicture}
Expand Down

0 comments on commit b401410

Please sign in to comment.