A relationship between a weight of a reel supported by a column of a wire electric discharge machine when a wire electrode is wound around the reel, and an amount of slanting of the wire electrode when the wire electrode extended between an upper wire guide and a lower wire guide becomes slanted as a result of the column being deformed by the weight of the reel is stored. The weight of the reel is determined during electric discharge machining, and the amount of slanting of the extended wire electrode is determined from the weight of the reel. A compensation amount for the slanting of the wire electrode is determined from the amount of slanting, and the slanting of the wire electrode is compensated by the compensation amount.