Bugfix for editmodel when the linedraw visual isn't the default visual.