Magnetic structure transformation in MnPt