mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
in case no photo is set: define photoframewidth nevertheless (#202)
This commit is contained in:
parent
34e7b15a6b
commit
d6d3ef7f13
2 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue