I have a QGIS-project that is completely in EPSG:31467 - DHDN / Gauss-Kruger zone 3. It consists of random points (camera traps) surrounded by a polygon (forest edge). I already converted the polygon into lines in order to measure the distance between each camera trap and its nearest forest edge. The tool works well apart from the problem that the output shapefile surprisingly is in EPSG:4326 - WGS 84, but still displayed correctly (connecting lines between points and outline).

After then correcting the CRS of the new shapefile (WGS84) to the original project CRS (DHDN 3) the new layer ends up far away from where it should be.

Any suggestions how to get it right?
