When I compile the following code the caption for the table lies slightly below the caption for the figure. However, if I add a \hline after the last table row the captions align perfectly. Is there anyway I can make the captions align without adding the line at the bottom of the table?
\documentclass{report}
\usepackage{subfig}
\begin{document}
\begin{figure}[h!]
\centering
\subfloat[A figure left of a table]{
\rule{6.4cm}{3.6cm}
}\qquad
\subfloat[Truth Table]{
\begin{tabular}{ c c || c c }%
E & X & D & D\\%
\hline%
0 & 0 & 0 & 0\\%
0 & 1 & 0 & 0\\%
1 & 0 & 0 & 1\\%
1 & 1 & 1 & 0\\
\end{tabular}
}
\end{figure}
\end{document}
Any help would be greatly appreciated
