The spatial structure of a solar flare in soft X-rays and centimetric wavelengths