From cf00cabc65af1a29536725ca6665216c01decb39 Mon Sep 17 00:00:00 2001 From: Xavier Danaux Date: Fri, 11 Nov 2011 02:50:45 +0100 Subject: [PATCH] Corrects a bug introduced in v0.13 when no \photo is used in the classic style --- moderncvthemeclassic.sty | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moderncvthemeclassic.sty b/moderncvthemeclassic.sty index 9b6a7cc..a813fde 100644 --- a/moderncvthemeclassic.sty +++ b/moderncvthemeclassic.sty @@ -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