M 46 and two planetary nebulae