Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update qgsproject.cpp #1278

Closed
wants to merge 1 commit into from
Closed

Update qgsproject.cpp #1278

wants to merge 1 commit into from

Conversation

alongL
Copy link

@alongL alongL commented Mar 29, 2014

if projPath is like "D:/output/bin/release/../data/ykw/ykw.qgs"
(Please note the "../"),
and srcPath is like "D:/output/bin/data/ykw/ge.tif"
the relative path generated is wrong as "../../../../data/ykw/ge.tif"
so dir0.canonicalPath() will Returns the canonical path, i.e. a path without symbolic links or redundant "." or ".." elements.

if projPath is like "D:/output/bin/release/../data/ykw/ykw.qgs"
(Please note the "../"),
and srcPath is like "D:/output/bin/data/ykw/ge.tif"
the relative path generated is wrong as "../../../../data/ykw/ge.tif"
so dir0.canonicalPath() will Returns the canonical path, i.e. a path without symbolic links or redundant "." or ".." elements.
@alongL
Copy link
Author

alongL commented Mar 29, 2014

modify the bug like "D:/output/bin/release/../data/ykw/ykw.qgs"

@mhugent mhugent self-assigned this May 12, 2014
@mhugent
Copy link
Contributor

mhugent commented May 12, 2014

assigned to @mhugent

@mhugent
Copy link
Contributor

mhugent commented May 15, 2014

Commited this fix in e880ee4 (but using QFileInfo instead of QDir). Thanks for tracking down this issue!

@mhugent mhugent closed this May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants