This patch (committed) fixes bug 1494936 by returning from the method immediately if
neither the line or the shape is visible for the current item:
2006-05-25 David Gilbert <david.gilbert@...>
(drawItem): Check for both line and shape not visible, and do nothing
in that case (fix for bug 1494936).