Skip to content
Permalink
Browse files
Fix writing relative file path if project path contains . or .. (pull…
… request #1278)
  • Loading branch information
mhugent committed May 15, 2014
1 parent b89cc25 commit e880ee4b6574e27c0534a994c894eb3a4f097f5e
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/core/qgsproject.cpp
@@ -1469,8 +1469,10 @@ QString QgsProject::writePath( QString src ) const
return src;
}

QString srcPath = src;
QString projPath = fileName();
QFileInfo srcFileInfo( src );//QString srcPath = src;
QFileInfo projFileInfo( fileName() );
QString srcPath = srcFileInfo.canonicalFilePath();
QString projPath = projFileInfo.canonicalFilePath();

if ( projPath.isEmpty() )
{

0 comments on commit e880ee4

Please sign in to comment.