Using a polarizing microscope the temperature dependence of orientation of W'-type domain walls in a ferroelastic AgNbO3 crystal was determined. Results obtained are discussed within the framework of the Sapriel theory in relation to temperature dependence of lattice unit cell parameters. Inversion of the W'-domain wall orientation was observed. (C) 1999 American Institute of Physics. [S0021-8979(99)02303-8].