Skip to content

Commit

Permalink
[bugfix] Fixes #16242 saves always with absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed May 12, 2017
1 parent deb9667 commit 913527b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsproject.cpp
Expand Up @@ -1550,7 +1550,7 @@ QString QgsProject::writePath( const QString& src, const QString& relativeBasePa
QFileInfo srcFileInfo( src );
QFileInfo projFileInfo( fileName() );
QString srcPath = srcFileInfo.exists() ? srcFileInfo.canonicalFilePath() : src;
QString projPath = projFileInfo.canonicalFilePath();
QString projPath = projFileInfo.exists( ) ? projFileInfo.canonicalFilePath() : fileName();

if ( !relativeBasePath.isNull() )
{
Expand Down

0 comments on commit 913527b

Please sign in to comment.