I'm having an odd problem with TikZ rectangle split horizontal and rectangle split ignore empty parts. The problem is that if you have empty parts (unused) then the last rectangle seems to have an extra rule on its right-hand side -- note in the example below that the rule width for lines 2-4 appear to be doubled in width:
Evidence of this problem can be seen in other questions (e.g., Draw a tree with tikzpicture, node collapsed problem) though this particular issue has not drawn comment that I can find.
Is there a way to overcome this problem?
Update
I can confirm that this does not happen (or does not appear to happen) with vertically split nodes.
\documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.multipart} \tikzset{hmul/.style={ rectangle split, rectangle split horizontal, rectangle split parts = 4, rectangle split ignore empty parts, draw }% } \begin{document} \begin{tikzpicture} \node[hmul]{\nodepart{one}1 \nodepart{two}2 \nodepart{three}3 \nodepart{four}4}; \end{tikzpicture} \begin{tikzpicture} \node[hmul]{\nodepart{one}1 \nodepart{two}2 \nodepart{three}3}; \end{tikzpicture} \begin{tikzpicture} \node[hmul]{\nodepart{one}1 \nodepart{two}2}; \end{tikzpicture} \begin{tikzpicture} \node[hmul]{\nodepart{one}1}; \end{tikzpicture} \end{document} 



rectangle split every empty part={},rectangle split empty part width=-\pgflinewidth,would do the trick but it does not.