Skip to content
Permalink
Browse files
fix crash when project is not yet saved
  • Loading branch information
jef-n committed Nov 24, 2011
1 parent 376adc4 commit 1717d3ce4e5dd60ab60b312b3ba0999ad5f7e5d0
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgsproject.cpp
4 src/core/qgsproject.cpp 100644 → 100755
@@ -1365,7 +1365,9 @@ QString QgsProject::readPath( QString src ) const
// where the source file had to exist and only the project directory was stripped
// from the filename.
QFileInfo pfi( fileName() );
Q_ASSERT( pfi.exists() );
if ( !pfi.exists() )
return src;

QFileInfo fi( pfi.canonicalPath() + "/" + src );

if ( !fi.exists() )

0 comments on commit 1717d3c

Please sign in to comment.