Following minimal example doesn't work and generates an error
\documentclass{article}
\usepackage{graphicx}
\usepackage{amssymb}
\begin{document}
\begin{figure}
FIGURE
\caption{$\blacksquare$ result of; \rotatebox[origin=c]{45}{$\blacksquare$}}%
\end{figure}
\rotatebox[origin=c]{45}{$\blacksquare$}
\end{document}
The error message says:
rotatebox-in-caption.tex|7| Argument of \@caption has an extra }.
|| <inserted text>
|| \par
|| l.7 ...; \rotatebox[origin=c]{45}{$\blacksquare$}}
Do I have to wrap the \rotatebox in a certain box to make it work?

\caption[Stuff for the list of figures goes here]{$\blacksquare$ result of; \rotatebox[origin=c]{45}{$\blacksquare$}}. You might be able to\protectsome of it if you really want it in thelof– cmhughes Jun 19 '13 at 15:21\protectin front of\rotatebox, that is,\protect\rotatebox[origin=c]{45}{...}, when it's in the argument of\caption. – egreg Jun 19 '13 at 15:26\protectsolves the problem. @percusse I checked your link. What does\protectactually do to allow the fragile(?) command\rotateboxwithin a moving env. such as the\caption. What does it have to do with thelofwhat cmhughes was mentioning (there is no list of figures)? – Hotschke Jun 19 '13 at 15:39