             let compositePositionY:Int = positionY + offsetY
             let lineWidth:Int?
             
-            if compositePositionY % scale100 == 0
+            if compositePositionY % 100 == 0
             {
                 lineWidth = kLineHeightFifties
                 

                
                attributedString.draw(in:stringRect)
            }
            else if compositePositionY % scale50 == 0
            {
                lineWidth = kLineHeightFifties
            }
            else if compositePositionY % scale10 == 0
            {
                lineWidth = kLineHeightTens
            }
            else if compositePositionY % scale5 == 0
            {
                lineWidth = kLineHeightFives
            }

        context.setStrokeColor(UIColor.black.cgColor)
        let width:Int = Int(rect.maxX)
        let height:Int = Int(rect.maxY)
        let zoomScale:CGFloat = controller.modelZoom.currentZoom()
        
        for positionX:Int in 0 ..< width
        {
            let sumPositionX:CGFloat = CGFloat(positionX + offsetX)
            let sumPositionXZoom:CGFloat = sumPositionX / zoomScale
            let compositePositionX:Int = Int(round(sumPositionXZoom))
            let lineHeight:Int?
            
            if compositePositionX % 100 == 0
            {
                lineHeight = kLineHeightFifties
                
