Fix division by zero bug in transform tool (when axis line is vertical)