Skip to content
Permalink
Browse files
projection selector: skip unavailable user CRSes (fixes #7377)
  • Loading branch information
jef-n committed Jun 30, 2013
1 parent dcdcd12 commit 92b930a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -76,7 +76,7 @@ QgsProjectionSelector::QgsProjectionSelector( QWidget* parent, const char *name,
if ( ! crs.isValid() )
{
// Couldn't create from EPSG, try the Proj4 string instead
if ( ! crs.createFromProj4( projectionsProj4.at( i ) ) )
if ( i >= projectionsProj4.size() || !crs.createFromProj4( projectionsProj4.at( i ) ) )
{
// No? Skip this entry
continue;

0 comments on commit 92b930a

Please sign in to comment.