Bug report #1905
Relative/Absolute paths are not recalculated on project save
|Affected QGIS version:||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||11965|
1. Create new project with a shapefile
2. Clear the checkbox to save relative paths, resave the project
3. Check paths - they are relative, fine
4. Resave the project one folder up.
5. Check paths - they did not change, but they should have.
#2 Updated by Giovanni Manghi over 12 years ago
I tested the behaviour also under windows (qgis-dev from osgeo4w) and the result seems the same to me. When I save a project (after clearing the checkbox to save relative paths) the path to a layer in the .qgs file is relative if the project file resides in a folder that stays at the same level or above the one of the layer. If the project file resides in a folder below the one of the layer, then the path is absolute.
So, if you have layers coming from different folders, and depending where you save the project, you may have correct relative paths, incorrect absolute ones and even a project file with a mix of relative and absolute paths.