I am going pretty nuts here. The little LaTeX knowledge I have has reached its limits, and I can't find any clues anywhere on the net. So some input would be greatly appreciated!
The Problem
When using subfloats (with the subfig package) to include graphics at the full text/column width, the graphics seem to be shifted to the right slightly, extending over and out of the text area.
I first noticed this when preparing a two-column manuscript where I needed two figures under each other with subcaptions.
Here is an example:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{blindtext}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=\textwidth,height=0.1\textwidth]{dummy.pdf}
\caption{Caption 1}
\end{figure}
\begin{figure}
\centering
\subfloat[Subcaption 2a.]{
\includegraphics[width=\textwidth,height=0.1\textwidth]{dummy.pdf}
}\\
\subfloat[Subcaption 2b.]{
\includegraphics[width=\textwidth,height=0.1\textwidth]{dummy.pdf}
}
\caption{Caption 2}
\end{figure}
\blindtext
\end{document}
(Using width=\columnwidth or width=\linewidth results in the same behavior.)
Note that this does not happen when using smaller widths (e.g. width=0.9\textwidth). Then, everything works as it should.
The Question
How can I fix this in a sensible manner?
I could of course reduce the width of the subfloat graphics. But I am a sucker for consistency and my graphics basically show the same thing with small changes, so that it is somewhat apparent when the sizing changes all of the sudden. I'd also want to avoid rescaling all graphics, and would prefer if they span the entire text/column width.

{in the\subfloatcommand. This is adding a space to your output shifting it to the right. – Andrew Swann May 03 '16 at 10:30