X and Y were changed at first by me to PropertyLength and later by Wandererfan to PropertyDistance. For this second change there is handleChangedPropertyType() code missing. This PR adds this.
- also some code formatting improvements automatically done by MSVC
- for the reason of the change, see https://forum.freecadweb.org/viewtopic.php?f=35&t=40608
- also use "0.0" as initialization because these values are floats, not integers and e.g. in the mesh WB these are initialized that way