A topotactic transition in a liquid crystal compound