Fixed a grid drawing problem

Center grid line would be double-drawn or omitted at certain zoom levels