mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Corrects a bug introduced in v0.13 when no \photo is used in the classic style
This commit is contained in:
parent
55ce002760
commit
cf00cabc65
1 changed files with 3 additions and 3 deletions
|
|
@ -132,15 +132,15 @@
|
|||
\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\maketitlenamefullwidth}\fi
|
||||
% other lengths
|
||||
\newlength{\maketitlepicturewidth}
|
||||
\setlength{\maketitlepicturewidth}{\@photowidth}
|
||||
\newlength{\maketitledetailswidth}
|
||||
% recompute theme-specific lengths, called by class to recompute all lengths
|
||||
\renewcommand*{\recomputethemelengths}{%
|
||||
\setlength{\maketitledetailswidth}{\textwidth}%
|
||||
\addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
|
||||
\ifthenelse{\lengthtest{\maketitlepicturewidth=0pt}}%
|
||||
\ifthenelse{\isundefined{\@photo}}%
|
||||
{}%
|
||||
{\addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
|
||||
{\setlength{\maketitlepicturewidth}{\@photowidth}
|
||||
\addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
|
||||
\addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}}
|
||||
\recomputethemelengths
|
||||
\newif\if@firstdetailselement\@firstdetailselementtrue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue