Gap-labelling conjecture with nonzero magnetic field