in case no photo is set: define photoframewidth nevertheless (#202)

This commit is contained in:
daniel 2024-08-05 17:58:13 +02:00 committed by GitHub
commit d6d3ef7f13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -145,6 +145,8 @@
% Users may define `\@moderncvheadBackground` for additional background decoration
\ifthenelse{\isundefined{\@moderncvheadBackground}}{}{\@moderncvheadBackground}
% case with no photo: assure defined \@photoframewidth with 2pt
\ifthenelse{\isundefined{\@photo}}{\@initializelength{\@photoframewidth}\setlength{\@photoframewidth}{2pt}}{}%
\path[draw,line width=\@photoframewidth]
(head-bg.south west) edge[color=headhr!85!black] ([xshift=8em]head-bg.south west)
([xshift=8em]head-bg.south west) edge[color=headhr] ([xshift=-8em]head-bg.south east)