19After section 95 of the Town and Country Planning (Scotland) Act 1972 insert—
“95A Effect of listed building consent on listed building enforcement notice.
“95A(1)If, after the issue of a listed building enforcement notice, consent is granted under section 53(2A) of this Act for the retention of any work to which the listed building enforcement notice relates, the notice shall cease to have effect in so far as it requires steps to be taken which would involve the works not being retained in accordance with the consent.
(2)If the consent is granted so as to permit the retention of works without complying with some condition subject to which a previous listed building consent was granted, the listed building enforcement notice shall cease to have effect in so far as it requires steps to be taken for complying with that condition.
(3)The preceding provisions of this section shall be without prejudice to the liability of any person for an offence in respect of a failure to comply with the listed building enforcement notice before the relevant provisions of that notice ceased to have effect.”.