Hallo ihr lieben,

habe mal wieder ein Problem mit meinem geliebten subfig Packet. Ich versuche es nun seit Stunden und bekomme dieses Problem nicht in Griff
Wenn ich in die caption einen Verweis mit subref setzte, bekomme ich Fehler. Wenn ich den gleichen Text außerhalb von caption mache, geht es ohne Probleme. Ich habe absolut keine Ahnung, was nicht stimmt und hoffe, das jemand mir helfen kann!

Hier das Minimalbeispiel:


\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
% \usepackage[subfigure]{tocloft}
\usepackage[justification=justified,singlelinecheck=false,labe lfont={bf,small,sf},font={small,sf},
aboveskip=0.5em,belowskip=0em]{caption}
\usepackage[justification=justified,singlelinecheck=false,labe lfont={small,sf},font={small,sf}]{subfig}
% \setcounter{lofdepth}{3} % depth of the table of figures
\usepackage[english]{varioref}
\usepackage[pdfpagelabels=true,english,backref,pagebackref]{hyperref}
\hypersetup{colorlinks=true,breaklinks=true,linkco lor=blue,menucolor=blue,pagecolor=blue}
\usepackage[all]{hypcap} % a link jumps and focus on the picture and not on the caption

% Kombination of \autoref and \vref =>Figures/tables/chapters... together with nomber as a hyperlink in the pdf
\newcommand*{\fvref}[1]{\hyperref[#1]{\figurename}\vref{#1}}
\newcommand*{\tvref}[1]{\hyperref[#1]{\tablename}\vref{#1}}
\newcommand*{\chaptervref}[1]{\hyperref[#1]{\chapterautorefname}\vref{#1}}
\newcommand*{\sectionvref}[1]{\hyperref[#1]{\sectionautorefname}\vref{#1}}

\begin{document}

\def\figbox#1#2#3{%
\fbox{\hbox to #1{%
\vbox to #2{%
\vfil
\hbox to #1{%
\hfil
#3
\hfil}%
\vfil}}}}



\begin{figure}[htbp]
\subfloat[captionOfPic1InLof][]{\label{subfig:1}{\figbox{5cm}{5cm}{One}}}
\hfill
\subfloat[captionOfPic2InLof][]{\label{subfig:2}{\figbox{6cm}{4cm}{Two}}}
\caption{captionOfPic1And2 \subref{subfig:1} is here \subref{subfig:2} that's here}
\label{fig:1}
\end{figure}


% to get the list as an bookmark
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures

\end{document}